You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
related to "reasonable mean" - the value should be within the expected for the SI unit. Could also have a field/variable name that specifies the SI units
As briefly discussed in #44 , the inclusion of SI units into field/variable names needs to be considered in relation to other discussion points including:
If we keep the full covariate list with SI units as a RDS file in the package, short names will be fine for the covariate data frame.
We can include a separate slot for metadata inside NetCDF files.
units package, which leverages udunit2 and is usually used with sf, is a good tool to keep units with the covariate values
library(units)
#> udunits database from /Users/songi2/Library/R/arm64/4.3/library/units/share/udunits/udunits2.xml# length
(distance_km= set_units(15, "km"))
#> 15 [km]
(distance_mi= set_units(distance_km, "mi"))
#> 9.320568 [mi]# complex units
(thermal_kj= set_units(1e4, "kJ*km^-2"))
#> 10000 [kJ/km^2]
(thermal_calories= set_units(thermal_kj, "kcal*mi^-2"))
#> 6186.08 [kcal/mi^2]# basically dimensionless; but we can keep this unit with values
(moisture_kgkg= set_units(0.25, "kg*kg^-1"))
#> 0.25 [kg/kg]
is.numeric(moisture_kgkg)
#> [1] TRUE
No description provided.
The text was updated successfully, but these errors were encountered: