addition using transform

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
merced
Posts: 1
Joined: Wed Jul 26, 2023 6:12 pm

addition using transform

Post 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!
User avatar
MAgojam
Posts: 432
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: addition using transform

Post 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 1922 times
Cheers,
Maurizio
User avatar
jonathon
Posts: 2743
Joined: Fri Jan 27, 2017 10:04 am

Re: addition using transform

Post 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
Post Reply