Skip to content

Subset based on items in a list.

2 messages · Kyle., Erik Iverson

#
I don't know if I understand (small example with R command wouuld help), 
but, assuming your data.frame is called 'df'

subset(df, ID %in% ID_list)

Question, is ID_list a "list" or a vector, and are they really "numbers" 
or "factors"?
Kyle. wrote: