Skip to content
Prev 386753 / 398502 Next

Defining partial list of variables

Here we go! BUT, it works great for a continuous line. With line 
break(s), I got the nuisance "\n" inserted.

 > x<-strsplit("hhsize,urban,male,gov,nongov,married",","); x
[[1]]
[1] "hhsize"? "urban"?? "male"??? "gov"???? "nongov"? "married"

 > x<-strsplit("hhsize,urban,male,
+???????????? gov,nongov,married",","); x
[[1]]
[1] "hhsize"??????????? "urban"???????????? "male" "\n??????????? gov"
[5] "nongov"??????????? "married"
On 2021/1/5 ?? 05:34, Eric Berger wrote: