Grep part of dataframe in R?

Seems not very post about R language. Here is one: How to grep a sublist of a list like grep -f in unix? say I have a dataframe

ID v1 v2 v3
A 1 3 4 
B 4 5 6 
C 7 8 9 
D 1 3 4 
E 1 3 3 
F 2 4 5

and I only need

ID v1 v2 v3
A 1 3 4  
C 7 8 9 
E 1 3 3 
F 2 4 5

by like

grep vector=c("A", "C", "E", "F") 

or

 grep vector=read.table(file="list.file")

? Thanks a lot!

Look at the info on these links:
how do I grep in R? - Stack Overflow
grep {base} | inside-R | A Community Site for R

Got answer from stackoverflow!

>dfrm
A 1 3 4 
B 4 5 6
C 7 8 9
D 1 3 4
E 1 3 3
F 2 4 5

## and my list of the interest is stored in a file

subset <-read.table("infile", header=F)
>subset
1 A
2 C
3 E
4 F
> dfrm[rownames(dfrm) %in% subset[,1], ]
A 1 3 4 
C 7 8 9
E 1 3 3
F 2 4 5

subset[, 1] does the trick, subset is a dataframe too, that I should have been aware of!
R is also very powerful.