I need to retrieve the entire DF line, in a new DF, only when I find the element of the vector, in the DF id field
ids 2001586 , 2007037,2012677,2020645)
df
I need to retrieve the entire DF line, in a new DF, only when I find the element of the vector, in the DF id field
ids 2001586 , 2007037,2012677,2020645)
df
result df [1] == (lapply (df [1], function (x) intersect (ids, x))),