Skip to content
Prev 157521 / 398506 Next

turning comma separated string from multiple choices into flags

June Kim wrote:
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 probably better to use regexpr(....) != -1
than grep(....) for this purpose because the latter returns indices
rather than a value for each element.