Issues with transform function

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
Lknowles95
Posts: 5
Joined: Tue Aug 06, 2024 7:45 am

Issues with transform function

Post by Lknowles95 »

Hoping for some advice with an error message using the transform function for my uni module.

Using Jamovi in cloud.

When using transform and using ‘add recode condition’ for if/ else…. If I input a word after ‘use’ I get an error message:
Either-
1) ‘word’ does not exist in data set - if using single word
Or
2) ‘word example’ the formula is misspecified- if using 2 words

I am using the word in ‘…’ as above
The function seems to work if I use a number but not words.
I have attached some examples if this helps!
Attachments
IMG_0068.png
IMG_0068.png (441.48 KiB) Viewed 10121 times
IMG_0067.png
IMG_0067.png (442.26 KiB) Viewed 10121 times
IMG_0066.png
IMG_0066.png (441.16 KiB) Viewed 10121 times
User avatar
jonathon
Posts: 2840
Joined: Fri Jan 27, 2017 10:04 am

Re: Issues with transform function

Post by jonathon »

hi,
When using transform and using ‘add recode condition’ for if/ else…. If I input a word after ‘use’ I get an error message:
Either-
1) ‘word’ does not exist in data set - if using single word
if you want a recoded variable to take on a text value, you specify the text value with quotation marks; i.e. "word" or 'word'

if you want to refer to another variable, you surround them with backticks, i.e. `another variable`

if your case, you're using backticks rather than quotation marks.

cheers
Lknowles95
Posts: 5
Joined: Tue Aug 06, 2024 7:45 am

Re: Issues with transform function

Post by Lknowles95 »

Thank you that works!
Post Reply