I have a data frame containing id and other variables, and also a list which has some ids. Now I want to extract row of ids from the data frame which has same ids in list.
data frame
id value time
1 12 1.0
1 14 1.6
4 18 2.0
6 9 3.6
3 11 4.2
5 12 0.8
list
1,3,4
Result
id value time
1 12 1.0
1 14 1.6
3 11 4.2
4 18 2.0