format_snowprofileLayers: Format snowprofileLayers

View source: R/snowprofileLayers.R

format_snowprofileLayersR Documentation

Format snowprofileLayers

Description

Calculate missing data.frame columns based on the given ones, if possible.

Usage

format_snowprofileLayers(
  obj,
  target = "all",
  hs = NA,
  maxObservedDepth = NA,
  validate = TRUE,
  dropNAs = TRUE
)

Arguments

obj

snowprofileLayers object

target

string, indicating which fields are auto-filled ('all', 'height', 'depth', 'thickness', 'none')

hs

total snow height (cm) if not deductible from given fields

maxObservedDepth

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

Validate obj with validate_snowprofileLayers?

dropNAs

Do you want to drop all columns consisting of NAs only?

Value

copy of obj with auto-filled columns


sarp.snowprofile documentation built on Aug. 6, 2022, 1:05 a.m.