Creates a new site record with auto-generated site code and default values. The site code is generated using either a base code or a default "SITE_" prefix, followed by a zero-padded three-digit number.
The record structure follows eDataDRF::initialise_sites_tibble(). Default
values for geographic feature, coordinate system, and altitude unit are drawn
from the relevant controlled vocabularies.
Arguments
- site_number
Integer. The site number to use in the site code. Default is 1.
- base_code
Character. Optional prefix for the site code. If empty or NULL, defaults to "SITE_". Default is "".
- session
Shiny session object. Used to extract the ENTERED_BY value from session$userData$reactiveValues$campaignData$ENTERED_BY.
Value
A tibble with one row containing the new site record, initialized with
default values according to the eDataDRF sites schema
(eDataDRF::initialise_sites_tibble()).
See also
eDataDRF::initialise_sites_tibble(), eDataDRF::example_sites_tibble(),
eDataDRF::geographic_features_vocabulary(),
eDataDRF::coordinate_systems_vocabulary(),
eDataDRF::countries_vocabulary(), eDataDRF::ocean_vocabulary(),
eDataDRF::altitude_units_vocabulary()
Other create:
create_compartment_combination(),
create_dummy_session_data(),
create_existing_parameter(),
create_new_parameter()