Is there the ifelse() function in Jamovi
Posted: Thu Jul 20, 2023 4:13 pm
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
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