d_exp_hts {htsr} | R Documentation |
The function extracts a time-series in the "hts" format. It products a "tibble"
table with four columns : Date, Value, Station, Sensor. It is the default format of the package.
The function f_convert
converts it in Excel or csv format.
d_exp_hts(fsq, sta, sen, rtime = FALSE, dstart, dend, rplot = FALSE)
fsq |
Full name of the data base |
sta |
Station id. |
sen |
Sensor id. |
rtime |
Reduce time interval TRUE / FALSE (default) |
dstart |
Start date YYYY-MM-DD (default: start date of the ts) |
dend |
End date YYYY-MM-DD (default: end date of the ts) |
rplot |
Plot the extracted file TRUE / FALSE (default) |
For a step by step operation the function ds_exp_hts
is more convenient.
The function returns:
a tibble tstab with 4 columns Date, Value, Station, Sensor
a file (nomfic) with the following name: <sensor.id>_<station.id>.hts
P. Chevallier - oct 2017 - dec 2019
ds_exp_hts
manual settings of the parameters
## Not run:
f <- d_exp_hts("foo.sqlite","M","station","sensor")
## End(Not run)