I'm making the leap from SPSS to R and I was wondering how you deal with system missings...
For example, if I wanted to rewrite the following SPSS code into R:
RECODE income (1 THRU 6 = copy) (else = SYSMIS) INTO income2
I am able to write the following recode:
income_2018$income2 <- dplyr::recode(income_2018$income, '1' = 1L, '2' = 2L, '3' = 3L, '4' = 4L, '5'
= 5L, '6' = 6L)
How do I deal with system missings (the 'else' statement in the SPSS code)?
Thanks!