Displaying 1 result from an estimated 1 matches for "namestofind".
Did you mean:
names_to_find
2012 Oct 01
1
which() with multiple conditions
I hope someone can point me in the right direction please.
I have a data frame with a column containing names. I want to identify the
columns that contain names in a list.
namestofind <- c('fred','bill',....a long list)
If I only wanted to identify a single name I would use
which(z$name == 'bill')
What syntax would I use to identify all the rows that contain any of the
names in namestofind?
Thanks in advance for the pointer
--
View this messag...