Get the unique layers or depths, i.e. the backbone of an object given a set of identifying columns.
Usage
depth_structure(x, id_cols = NULL, ...)
# S3 method for class 'cfp_layered_profile'
depth_structure(x, id_cols = NULL, ...)
# S3 method for class 'cfp_profile'
depth_structure(x, id_cols = NULL, ...)
# S3 method for class 'cfp_dat'
depth_structure(x, id_cols = NULL, structure_from = NULL, ...)
Value
A cfp_profile with columns depth, or upper and lower.
Examples
depth_structure(cfp_soilphys(ConFluxPro::base_dat))
#> Resulting profiles not correctly layered! More id_cols needed?
#>
#> A cfp_profile object
#> id_cols:
#> 1 unique profiles
#>
#> upper lower
#> 1 7 3
#> 2 5 0
#> 3 3 0
#> 4 0 -7
#> 5 0 -5
#> 6 -5 -10
#> 7 -7 -10
#> 8 -10 -15
#> 9 -10 -13
#> 10 -13 -20
#> 11 -15 -20
#> 12 -20 -23
#> 13 -20 -40
#> 14 -23 -40
#> 15 -40 -60
#> 16 -60 -100
depth_structure(cfp_gasdata(ConFluxPro::base_dat))
#>
#> A cfp_profile object
#> id_cols:
#> 1 unique profiles
#>
#> depth
#> 1 7
#> 2 5
#> 3 0
#> 4 -10
#> 5 -20
#> 6 -100