Creates a dataframe with data from a ws_monitor object, essentially
flattening the object. This is especially useful when monitoring data will be shared with
non-R users working with spreadsheets. The returned dataframe will contain data from the monitor
specified with monitorID
.
The number of data columns in the returned dataframe can include all metadata as well
as additional calculated values.
By default, the following, core columns are included in the dataframe:
Any column from ws_monitor$meta
may be included in the vector of metaColumns
.
The following additional columns of data may be included by adding one of the following
to the vector of extraColumns{}
aqi
hourly AQI values as calculated with monitor_aqi()
nowcast
hourly Nowcast values as calcualted with monitor_nowcast()
dailyAvg
daily average PM2.5 values as calculated with monitor_dailyStatistic()