View source: R/temperature_timeseries.R
append_TempSeq | R Documentation |
Append temperature times series with latest temperature from NIWA's CliFlo database.
append_TempSeq(
temp_stored,
date_append = as.Date(Sys.time()),
request = TRUE,
username = NULL,
password = NULL
)
temp_stored |
Stored temperatures to append. |
date_append |
Get updated temperatures after this date. Defaults to current system clock. |
request |
Make CliFlo request (default = TRUE). |
username |
CliFlo login username (see 'https://cliflo.niwa.co.nz') |
password |
CliFlo login password. |
# get stored data
dat <- data.frame(mosqmod::saved_station_temps)
# subset selected temperature series
subdat <- subset(dat, Station == "Dunedin, Musselburgh Ews")
temp_hist <- mosqmod::append_TempSeq(temp_stored = subdat,
request = FALSE,
date_append = as.Date(Sys.Date()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.