On 8/19/2009 11:06 PM, Damion Dooley wrote:
Slight addendum. Working from your code, I found 1 line of code does the
conversion:
myColumn = unlist(strsplit(as.character(myData[[myQuestion]]),","));
But the dataframe you set up may prove more useful.
I'm glad my suggestion was useful. My more comprehensive example assumed
that you needed to be able to match individual multi-choice selections
with other questions through the observation ID after the processing.
If that is not needed, the one-liner should be adequate.
Best,
Magnus
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.