cfp_layered_profile: Object for layered soil profiles

View source: R/cfp_layered_profile.R

cfp_layered_profileR Documentation

Object for layered soil profiles

Description

A subclass of cfp_profile() where each profile consists of layers that are defined by their upper and lower boundary without gaps or duplicates.

Usage

cfp_layered_profile(x, id_cols = NULL)

Arguments

x

A data.frame with columns upper and lower.

id_cols

Column names in data.frame that uniquely identify each profile.

Details

upper and lower define the upper and lower bounds of each layer in cm. Higher values lay on top of lower values.

Value

A cfp_layered_profile object. This is a [cfp_profile()] that is further subdivided into layers by the columns upper and lower.

See Also

Other data formats: cfp_dat(), cfp_gasdata(), cfp_layers_map(), cfp_profile(), cfp_soilphys()

Examples

df <- data.frame(
  site = rep(c("site_a", "site_b"), each = 2),
  upper = c(10, 0, 7, 0),
  lower = c(0, -100, 0, -100),
  variable = 1:4)

cfp_layered_profile(df, id_cols = "site")

valentingar/ConFluxPro documentation built on Dec. 1, 2024, 9:35 p.m.