Controlled vocabulary for MEASURED_UNIT, LOQ_UNIT, and LOD_UNIT, with conversion factors and base units
Source: R/fct_vocabulary.R
parameter_unit_vocabulary.RdReturns unit definitions and SI conversion factors for environmental measurements.
Details
Reads unit conversion data from unit_conversion_factors.csv containing standardised units for ecotoxicological and environmental measurements. The complete dataset includes columns:
MEASURED_UNIT: Unit as recorded in measurements
BASE_SI_UNIT: Corresponding SI base unit
CONVERSION_FACTOR: Numeric factor to convert to SI units
UNIT_COMMENTS: Additional notes about unit usage or conversion
Data source: extdata/unit_conversion_factors.csv
Examples
head(parameter_unit_vocabulary(), 5)
#> # A tibble: 5 × 4
#> MEASURED_UNIT BASE_SI_UNIT CONVERSION_FACTOR UNIT_COMMENTS
#> <chr> <chr> <chr> <chr>
#> 1 mg/L kg/m³ 1e-3 mass concentration
#> 2 μg/L kg/m³ 1e-6 mass concentration
#> 3 ng/L kg/m³ 1e-9 mass concentration
#> 4 pg/L kg/m³ 1e-12 mass concentration
#> 5 mol/L mol/m³ 1000 molar concentration
parameter_unit_vocabulary(select_column = "MEASURED_UNIT") |> head(5)
#> [1] "mg/L" "μg/L" "ng/L" "pg/L" "mol/L"