Subsetting Data by Rows

Hello.
Im looking for a way to subset all of my data from my data set, where the row includes the specific month, e.g. August

I've tried with subsetting them after row number one by one but that seems a little too much work considering I have to do this for multiple data frames. I'm sorry, if this question has been asked before but I haven't found anything on subsetting dataframes by words that appear in specific rows.

Hi, I'd suggest using the function filter in the dplyr package.

library(tidyverse)
data_filtered <- data %>%
   filter(Month=="August")

thanks :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.