
Change the naming convention of measurement variables
Peter Levy
2026-03-03
changing_names.RmdThis vignette illustrates how to change the naming convention of measurement variables.
Local names in original data file
We start with the ad hoc names given locally to variables in the raw data file we have read in.
Convert to ICOS naming convention
mm1_icos <- change_naming_convention(mm1, name_convention = "name_icos")
names(mm1_icos$dt)
#> [1] "TIMESTAMP" "P_12_1_1" "D_SNOW_4_1_1" "site"Convert to ERA5 naming convention
names(mm1_icos$dt)
#> [1] "TIMESTAMP" "P_12_1_1" "D_SNOW_4_1_1" "site"
mm1_era5 <- change_naming_convention(mm1, name_convention = "name_era5")
names(mm1_era5$dt)
#> [1] "time" "tp_12_1_1" "sd_4_1_1" "site"