Page 1 of 1

Issues with transform function

Posted: Wed Aug 07, 2024 12:19 pm
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!

Re: Issues with transform function

Posted: Wed Aug 07, 2024 10:42 pm
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

Re: Issues with transform function

Posted: Thu Aug 08, 2024 2:08 am
by Lknowles95
Thank you that works!