I have daily flow data for 47 years.I want to seprate my data based on dates more specfically based on months. I face following error while trying to execute
dataset <- read_xlsx("BQ.Flow.xlsx")
as.Date(dataset[["Date"]], "%y-%m-%d")
sub.data <- selectByDate(dataset, start = "1971-01-01", end = "2017-12-31", year = 1971, month =
c("dec", "jan", "feb"))
Error in as.Date.default(x, ...) : do not know how to convert 'x' to class “Date”
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue and including sample data? Please have a look at this guide, to see how to create one: