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!
addition using transform
Re: addition using transform
Hey @merced,
are you sure you don't have your value to be added in single quotes?
In the screenshot it works. Cheers,
Maurizio
are you sure you don't have your value to be added in single quotes?
In the screenshot it works. Cheers,
Maurizio
Re: addition using transform
> 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
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