0

Is there an equivalent "match" function for the rows?

I could use:

which(rownames(data.frame)=="name")

but since

which(colnames(data.frame)=="name") 

can be replaced by

match("name", names(data.frame))

I wonder if there is a similar function for the rows. My goal is to delete rows directly using their names, not their number.

Thanks

Stéphane

jbaums
  • 27,115
  • 5
  • 79
  • 119

0 Answers0