View source: R/export_cdt_daily.R
| export_cdt_daily | R Documentation | 
export_cdt_daily takes a data frame with daily data.
This data frame is then rearranged using prepare_cdt_daily to a
format suitable for use in CDT, and then written to a file or connection.
export_cdt_daily(
  data,
  station,
  element,
  date_time,
  latitude,
  longitude,
  altitude,
  metadata = NULL,
  file_path = paste0("CDT-", element, ".csv"),
  ...
)
data | 
 
  | 
station | 
 
  | 
element | 
 
  | 
date_time | 
 
  | 
latitude | 
 
  | 
longitude | 
 
  | 
altitude | 
 
  | 
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:
#export_cdt_daily(data = daily_niger, station = "station_name", element = "rain", type = "daily",
#           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.