Prohibit Spaces in Variable Names

Discuss the jamovi platform, possible improvements, etc.

by reason180 » Wed May 15, 2019 8:39 am

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.
reason180
 
Posts: 36
Joined: Mon Jul 24, 2017 4:56 pm

by jonathon » Wed May 15, 2019 9:59 am

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

Jonathon
User avatar
jonathon
 
Posts: 1053
Joined: Fri Jan 27, 2017 10:04 am

by reason180 » Wed May 29, 2019 1:44 am

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 70 times
reason180
 
Posts: 36
Joined: Mon Jul 24, 2017 4:56 pm

by jonathon » Wed May 29, 2019 1:50 am

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
jonathon
 
Posts: 1053
Joined: Fri Jan 27, 2017 10:04 am

by reason180 » Wed Jan 08, 2020 4:41 pm

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/dataspace3579/home/Tooth%20Growth%20x.zip?attredirects=0&d=1
reason180
 
Posts: 36
Joined: Mon Jul 24, 2017 4:56 pm

by jonathon » Wed Jan 08, 2020 9:34 pm

thanks,

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

jonathon
User avatar
jonathon
 
Posts: 1053
Joined: Fri Jan 27, 2017 10:04 am


Return to General