Calculate missing data.frame columns based on the given ones, if possible.
format_snowprofileLayers(
obj,
target = "all",
hs = NA,
maxObservedDepth = NA,
validate = TRUE,
dropNAs = TRUE
)
copy of obj with auto-filled columns
snowprofileLayers object
string, indicating which fields are auto-filled ('all', 'height', 'depth', 'thickness', 'none')
total snow height (cm) if not deductible from given fields
the observed depth of the profile from the snow surface downwards.
Will only be used, if no height
or thickness
exist in obj
, or if hs
is not given.
Validate obj
with validate_snowprofileLayers?
Do you want to drop all columns consisting of NAs only?