Page 1 of 1

addition using transform

Posted: Wed Jul 26, 2023 6:16 pm
by merced
Hello,
I am a little new to Jamovi. I am trying to figure out how to add or subtract to a numeric variable in Jamovi, but I cannot figure it out.
The data set I am working with has the variable 'age' but I need to increase all of the ages by 17. Using the transform tool, if I use
= $source + 17, all I get are the values returned with "17" added to the end of the already existing values (i.e. 57 changes to 5717).
Am I using incorrect language?

thank you!

Re: addition using transform

Posted: Wed Jul 26, 2023 10:19 pm
by MAgojam
Hey @merced,
are you sure you don't have your value to be added in single quotes?
In the screenshot it works.
screenshot.png
screenshot.png (77.39 KiB) Viewed 3911 times
Cheers,
Maurizio

Re: addition using transform

Posted: Thu Jul 27, 2023 10:02 pm
by jonathon
> if I use = $source + 17, all I get are the values returned with "17" added to the end

this suggests to me that your 'age' variable is set up as a 'text' variable, rather than an 'integer'. change it's type in variable editor.

jonathon