View source: R/monitor_toCSV.R
monitor_toCSV | R Documentation |
Converts the contents of the monitor
argument to CSV.
By default, the output is a text string with "human readable" CSV that
includes both meta
and data
. When saved as a file, this format
is useful for point-and-click spreadsheet users who want to have everything
on a single sheet.
To obtain a machine parseable CSV string for just the data, you can use
includeMeta = FALSE
. To obtain machine parseable metadata, use
includeData = FALSE
.
monitor_toCSV(monitor, includeMeta = TRUE, includeData = TRUE)
monitor |
mts_monitor object. |
includeMeta |
Logical specifying whether to include |
includeData |
Logical specifying whether to include |
CSV formatted text.
library(AirMonitor)
monitor <-
Carmel_Valley %>%
monitor_filterDate(20160802, 20160803)
monitor_toCSV(monitor) %>% cat()
monitor_toCSV(monitor, includeData = FALSE) %>% cat()
monitor_toCSV(monitor, includeMeta = FALSE) %>% cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.