cfp_soilphys {ConFluxPro}R Documentation

Soil physical parameters data

Description

Create a cfp_soilphys object. This is a data.frame containing layered data of soil physical properties, at the minimum of the air density c_air and diffusion coefficient DS for one or multiple soil profiles. Each soil profile is uniquely identified by columns in the data.frame specified by the id_cols attribute. Each profile is further subdivided into layers by columns upper and lower (see cfp_layered_profile).

Usage

cfp_soilphys(x, ...)

## S3 method for class 'cfp_dat'
cfp_soilphys(x, ...)

## S3 method for class 'data.frame'
cfp_soilphys(x, id_cols, ...)

Arguments

x

A data.frame with (at least) the following columns:

upper (cm)

The upper bound of each step.

lower (cm)

The lower bound of each step.

gas

The gas of that step.

DS (m^2 s^-1)

The specific diffusion coefficient of that gas in that step.

c_air (mol m^-3)

The number density of air in that step.

any of id_cols

All id_cols that identify one profile uniquely.

...

Internal, must be empty.

id_cols

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

Value

A cfp_soilphys object.

See Also

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

Examples

cfp_soilphys(
  ConFluxPro::soilphys,
  id_cols = c("site", "Date", "gas")
)
### Also used to extract an soilphys object from cfp_dat
cfp_soilphys(ConFluxPro::base_dat)

[Package ConFluxPro version 1.3.1 Index]