[R] From SPSS Syntax to R code
beky
beky at inbox.lv
Sat Feb 12 14:08:06 CET 2011
There is a code from SPSS Syntax
do if sub(ATVK,2,2)="01".
comp strata=1.
else if sub(ATVK,2,2)>="05" and sub(ATVK,2,2)<="27".
comp strata=3.
else if sub(ATVK,4,2)>"20" or sub(ATVK,6,2)>"20".
comp strata=4.
else if sub(ATVK,4,2)>"00".
comp strata=2.
end if.
value labels strata 1 "R 2 "Li" 3 "M" 4 "La".
How can i rewrite it in R code?
--
View this message in context: http://r.789695.n4.nabble.com/From-SPSS-Syntax-to-R-code-tp3302666p3302666.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list