[R] line breaks in recode

Bernd Weiss bernd.weiss at uni-koeln.de
Tue Nov 4 11:52:41 CET 2003


Dear all,

it seems to be that 'recode' can't handle any line breaks in its code.

The following command causes no problem:

datameta$smpid.r <- 
recode(datameta$smpid,"c(101,25,167,45,75)=25;c(104,51)=51")

But if I type ...

datameta$smpid.r <-recode(datameta$smpid,
	"c(101,25,167,45,75)=25;
             c(104,51)=51")

... the result is a syntax error. 

TIA

Bernd
-- 
Bernd Weiss, M.A.
Universitaet zu Koeln / University of Cologne
Forschungsinstitut fuer Soziologie / Research Institute for Sociology
Greinstr. 2 / 50 939 Cologne / Germany
Phone: +49 221 / 470-4234
E-Mail: <bernd.weiss at uni-koeln.de>




More information about the R-help mailing list