Displaying 2 results from an estimated 2 matches for "favorite_magazine".
2008 Sep 29
2
turning comma separated string from multiple choices into flags
...the data, I have to
change that string into something like flags(indicator variables?).
That is, there should be 4 variables, of which values are either 1 or
0, indicating chosen or not-chosen respectively.
Suppose the data is something like,
> survey1
age favorite_magazine
1 29 Fast Company
2 31 Fast Company, Business Week
3 32 Havard Business Review, Business Week, The Economist
>
Then I have to chop the string in favorite_magazine column to turn
that data into something like,
> survey1trans...
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...the data, I have to
change that string into something like flags(indicator variables?).
That is, there should be 4 variables, of which values are either 1 or
0, indicating chosen or not-chosen respectively.
Suppose the data is something like,
> survey1
age favorite_magazine
1 29 Fast Company
2 31 Fast Company, Business Week
3 32 Havard Business Review, Business Week, The Economist
>
Then I have to chop the string in favorite_magazine column to turn
that data into something like,
> survey1trans...