View source: R/export_climdex.R
export_climdex | R Documentation |
export_climdex
rearranges a data frame using prepare_climdex
to a
format suitable for use in RClimDex. The data frame is then written to a
file or connection.
export_climdex(
data,
prcp,
tmax,
tmin,
date = NULL,
year = NULL,
month = NULL,
day = NULL,
file_type = c("csv", "txt"),
file_path = paste0("climdex-", Sys.Date()),
...
)
data |
|
prcp |
|
tmax |
|
tmin |
|
date |
|
year |
|
month |
|
day |
|
file_type |
|
file_path |
|
... |
Other parameters passed to |
Invisibly returns the file path of the saved data
# Export data to climdex
# NOT RUN:
# export_climdex(data = daily_niger, date = "date", prcp = "rain", tmax = "tmax", tmin = "tmin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.