Answers for "Subset data frame by date"

0

Subset data frame by date

data_new <- data[data$date > "2021-01-01" &    # Extract data frame subset
                   data$date < "2024-01-01", ]
data_new                                       # Print new data frame
Posted by: Guest on October-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language