cfp_gasdata: Soil gas concentration data

View source: R/cfp_gasdata.R

cfp_gasdataR Documentation

Soil gas concentration data

Description

Create a cfp_gasdata object. This is a data.frame containing gas concentration data for one or multiple soil profiles. Each soil profile is uniquely identified by columns in the data.frame specified by the id_cols attribute.

Usage

cfp_gasdata(x, ...)

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

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

Arguments

x

A data.frame with the following columns:

gas

The gas of that observation.

depth (cm)

The depth of the observation.

x_ppm (ppm)

The concentration in ppm.

any of id_cols

All id_cols that identify one profile uniquely.

...

not used

id_cols

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

Value

A cfp_gasdata object.

See Also

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

Examples

cfp_gasdata(
  ConFluxPro::gasdata,
  id_cols = c("site", "Date"))
### Also used to extract the gasdata object from cfp_dat
cfp_gasdata(ConFluxPro::base_dat)

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