Prohibit Spaces in Variable Names

Discuss the jamovi platform, possible improvements, etc.
Post Reply
User avatar
reason180
Posts: 274
Joined: Mon Jul 24, 2017 4:56 pm

Prohibit Spaces in Variable Names

Post by reason180 »

It might be good for jamovi to disallow spaces in variable names. This is because a space in a variable name works fine for some jamovi analyses, but breaks other jamovi analyses.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Prohibit Spaces in Variable Names

Post by jonathon »

If spaces in variable names breaks an analysis, then let us know.

Jonathon
User avatar
reason180
Posts: 274
Joined: Mon Jul 24, 2017 4:56 pm

Re: Prohibit Spaces in Variable Names

Post by reason180 »

I created a variable called: Temp Name
as well as an identical one called TempName

When I try to filter by any of the following, the filtering fails for various reasons:

Temp Name
"Temp Name"
'Temp Name'
`Temp Name`

It only works when I filter by TempName
Attachments
Temp Name.omv
(16.31 KiB) Downloaded 374 times
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Prohibit Spaces in Variable Names

Post by jonathon »

you need to surround a name with spaces in it, with backticks. `Temp Name` works. (same as R)

if you click the little fx you can select variable names from the list and it will do this for you automagically.

jonathon
User avatar
reason180
Posts: 274
Joined: Mon Jul 24, 2017 4:56 pm

Re: Prohibit Spaces in Variable Names

Post by reason180 »

But here's a similar issue. In this toothgrowth data, the plot works when the DV is len, fails when the DV is Tooth Length, and also fails when the DV is `Tooth Length` . See the linked zip file, below, containing the jamovi (v 1.2) omv.
https://sites.google.com/site/dataspace ... ects=0&d=1
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Prohibit Spaces in Variable Names

Post by jonathon »

thanks,

i've created an issue: https://github.com/jamovi/jamovi/issues/793

jonathon
Post Reply