View source: R/dbpf_manual_obs_add.R
dbpf_manual_obs_add | R Documentation |
Tests and optionally inserts one manual observation into DB.
dbpf_manual_obs_add(
con,
sensor_label,
location_name,
time_UTC,
numeric_value,
text_value,
height_min_metres,
height_max_metres,
mode = "test"
)
con |
Database connection object, as returned by dbpf_con() |
sensor_label |
sensor label used to obtain sensor ID [character] |
location_name |
location name used to obtain location ID [character] |
time_UTC |
time of observation [POSIXct] |
numeric_value |
observed value / result [numeric] |
text_value |
observed value / result [character] |
height_min_metres |
[numeric] |
height_max_metres |
[numeric] |
mode |
Should data be inserted into DB? Defaults to 'test' so that only testing information is returned. To insert: 'insert' |
Data is checked for existence (or duplication) of sensor and location and feedback is returned.
Stephan Gruber <stephan.gruber@carleton.ca>
## Not run:
con <- dbpf_con()
data <- dbpf_manual_obs_add(con, sensor_label, location_name, time_UTC,
value, height_min_metres, height_max_metres,
insert = FALSE)
dbDisconnect(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.