save_okplan | R Documentation |
The surveillance selection is written to a standardised file. The file is standardised to include a standard set of columns and have the records in a standard order.
save_okplan(
data,
filename,
filepath,
sortvar = c("ok_hensiktkode", "ok_driftsformkode", "statuskode",
"prioritet_av_reserve", "eier_lokalitetnr"),
...
)
data |
[ |
filename |
[ |
filepath |
[ |
sortvar |
[ |
... |
Other arguments to be passed to
|
The data is saved as an "okplan" file that will be used the source file when the selection list is generated.
The function uses
NVIdb::standardize_columns
.
to select and order the columns. The formatting information is taken from
OK_column_standards
.
None. Saves a data frame with the selection in a standard csv file.
Petter Hopp Petter.Hopp@vetinst.no
## Not run:
library(OKplan)
td <- tempdir()
okplan <- as.data.frame(list("ok_hensiktkode" = c("01002", "01002"),
"ok_driftsformkode" = c("010202", "010202"),
"statuskode" = c(1, 1),
"prioritet_av_reserve" = c(NA, NA),
"eier_lokalitetnr" = c("1101123456", "1102123456")))
write_okplan(data = okplan,
filename = "okplan_species_disease",
filepath = td)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.