Skip to content
Prev 157531 / 398506 Next

turning comma separated string from multiple choices into flags

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 <juneaftn at gmail.com> wrote: