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: 29
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: 929
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 51 times
reason180
 
Posts: 29
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: 929
Joined: Fri Jan 27, 2017 10:04 am


Return to General

cron