Re: [R] turning comma separated string from multiple choices into

2016-10-11 Thread Bob Rudis
Take a look at tidyr::separate() On Fri, Oct 7, 2016 at 12:57 PM, silvia giussani wrote: > Hi all, > > > > could you please tell me if you find a solution to this problem (in > Subject)? > > > > June Kim wrote: > >>* Hello,* > >> > >>* I use google docs' Forms to conduct surveys online. Multiple

[R] turning comma separated string from multiple choices into

2016-10-10 Thread silvia giussani
Hi all, could you please tell me if you find a solution to this problem (in Subject)? June Kim wrote: >* Hello,* > >* I use google docs' Forms to conduct surveys online. Multiple choices* >* questions are coded as comma separated values.* > >* For example,* > >* if the question is lik

Re: [R] turning comma separated string from multiple choices into flags

2008-09-29 Thread Henrique Dallazuanna
Try this: table(rep(x$age, unlist(lapply(strsplit(x$favorite_magazine, ","), length))), unlist(strsplit(x$favorite_magazine, ","))) On Mon, Sep 29, 2008 at 11:45 AM, June Kim <[EMAIL PROTECTED]> wrote: > Hello, > > I use google docs' Forms to conduct surveys online. Multiple choices > que

Re: [R] turning comma separated string from multiple choices into flags

2008-09-29 Thread Peter Dalgaard
June Kim wrote: > Thank you. The misspelling of Harvard wasn't intended. The data are > spelled consistently. > OK. One other potential problem: If the strings are substrings of eachother (as in "Science" and "Statistical Science") then you may need more care. And I misremembered: It is probabl

Re: [R] turning comma separated string from multiple choices into flags

2008-09-29 Thread June Kim
Thank you. The misspelling of Harvard wasn't intended. The data are spelled consistently. 2008/9/30 Peter Dalgaard <[EMAIL PROTECTED]>: > June Kim wrote: >> Hello, >> >> I use google docs' Forms to conduct surveys online. Multiple choices >> questions are coded as comma separated values. >> >> For

Re: [R] turning comma separated string from multiple choices into flags

2008-09-29 Thread Peter Dalgaard
June Kim wrote: > Hello, > > I use google docs' Forms to conduct surveys online. Multiple choices > questions are coded as comma separated values. > > For example, > > if the question is like: > > 1. What magazines do you currently subscribe to? (you can choose > multiple choices) > 1) Fast Company

[R] turning comma separated string from multiple choices into flags

2008-09-29 Thread June Kim
Hello, I use google docs' Forms to conduct surveys online. Multiple choices questions are coded as comma separated values. For example, if the question is like: 1. What magazines do you currently subscribe to? (you can choose multiple choices) 1) Fast Company 2) Havard Business Review 3) Busine