Page 1 of 1

Prohibit Spaces in Variable Names

Posted: Wed May 15, 2019 8:39 am
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.

Re: Prohibit Spaces in Variable Names

Posted: Wed May 15, 2019 9:59 am
by jonathon
If spaces in variable names breaks an analysis, then let us know.

Jonathon

Re: Prohibit Spaces in Variable Names

Posted: Wed May 29, 2019 1:44 am
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

Re: Prohibit Spaces in Variable Names

Posted: Wed May 29, 2019 1:50 am
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

Re: Prohibit Spaces in Variable Names

Posted: Wed Jan 08, 2020 4:41 pm
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

Re: Prohibit Spaces in Variable Names

Posted: Wed Jan 08, 2020 9:34 pm
by jonathon
thanks,

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

jonathon