How can I remove rows from a data frame based on a certain condition using the R programming language?