I have a dataframe where the second column is a date in m/d/y format. There are 4 main column: name, date, time_taken, homequeue
I want to create subsets for particular month of one year (eg. 11/11, 12/11 etc)which i will use to calculate the total timetaken by people of particular homequeue who work from 4/1/2020 to 4/7/2020
I tried the code suggested in this answer: subset a data.frame with multiple conditions (Subsetting a dataframe for a specified month and year)
and it is not working for me. Please check image for dataset: utilization data **
df <- read.csv('Rm_2020-04-20 copy.csv')
combo <- subset(df, home_queue == 'Brand Effects', format.Date(date, "%m") == "04" & format.Date(date, "%Y") == "20")
**
but it returns an empty subset with error message
Error in as.POSIXlt.numeric(x) : 'origin' must be supplied
I am using R version 3.3.3 (2017-03-06) on Mac , thanks in adavance. I am new to the stackoverflow and learning R.