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
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:
utcTime UTC datetime
localTime local datetime
pm25 PM2.5 values in ug/m3
Any column from
ws_monitor$meta may be included in the vector of
The following additional columns of data may be included by adding one of the following
to the vector of
aqi hourly AQI values as calculated with
nowcast hourly Nowcast values as calcualted with
dailyAvg daily average PM2.5 values as calculated with
monitor ID of interest (not needed if
optional vector of additional data columns to generate
optional vector of column names from
optional vector with start and end times (integer or character representing YYYYMMDD[HH] or
A dataframe version of a ws_monitor object.
tlim argument is interpreted as localtime, not UTC.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.