Hi,
Am new to Jamovi and wonderfully lost!
Wondering if I can use the following ifelse function in computing an new variable:
NEWVariable = ifelse(p20freekit_circ___1 == 1,1,ifelse(p20freekit_circ___2 == 1,2,ifelse(p20freekit_circ___3 == 1,3,ifelse(p20freekit_circ___4 == 1,4,ifelse(p20freekit_circ___5 == 1,5,0 )))))
This in R as far as I know.
Am wondering how to do it in Jamovi.
Thanks for any hints.
Leo
Is there the ifelse() function in Jamovi
Re: Is there the ifelse() function in Jamovi
use the IF() function
although it looks like you're wanting to recode a variable, i'd suggest using the transformed variables instead:
https://blog.jamovi.org/2018/10/23/tran ... ables.html
jonathon
although it looks like you're wanting to recode a variable, i'd suggest using the transformed variables instead:
https://blog.jamovi.org/2018/10/23/tran ... ables.html
jonathon