Hello Family. I am getting the error from an air quality data analysis i am trying . Kindly assist me. timeVariation(node, pollutant = "PM.2.5", statistic = "median",col = "firebrick") Can't find the variable(s) date Error in checkPrep(mydata, vars, type, remove.calm = FALSE) :
below is the format of the date to be used
$ Date2 : POSIXct, format: "2019-12-01 00:03:57" "2019-12-01 00:04:57" ...
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Find the minimal dataset, the package used in this case is Open air. The issue is about the raw format of the date and time from the initial data set..
Hello, form the data set i tried to combine (Date - Time) to get it in a Date to time format. using iq$Date2 <- as.POSIXlt(iq$Date1,format="%d/%m/%Y %H:%M:%S",tz=Sys.timezone()).
I think you are giving too much credit to the openair timeVariation function, its not sufficient for the date variable to be a date class, it must have the exact name 'date'
here is a demo