export_cdt | R Documentation |
export_cdt
rearranges a data frame using prepare_cdt
to a
format suitable for use in CDT. The data frame is then written to a
file or connection.
export_cdt(
data,
station,
element,
latitude,
longitude,
altitude,
type = c("dekad", "daily"),
date_time = NULL,
year = NULL,
month = NULL,
dekad = NULL,
metadata = NULL,
file_path = paste0("CDT-", element, ".csv"),
...
)
data |
|
station |
|
element |
|
latitude |
|
longitude |
|
altitude |
|
type |
|
date_time |
|
year |
|
month |
|
dekad |
|
metadata |
|
file_path |
|
... |
Other parameters passed to |
Invisibly returns the file path of the saved data.
# To write daily_niger data to CDT format
# NOT RUN:
# date_time = "date", latitude = "lat", longitude = "long", altitude = "alt",
# metadata = stations_niger)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.