We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.


Filter data frame rows

We often want to operate only on a specific subset of rows of a data frame. The dplyr filter() function provides a flexible way to extract the rows of interest based on multiple conditions.

  • Use the filter() function to sort out the rows of a data frame that fulfill a specified condition
  • Filter a data frame by multiple conditions