These functions help coerce different object types in ConFluxPro.
Examples
PROFLUX <- pro_flux(base_dat)
as_cfp_pfmod(PROFLUX)
#>
#> A cfp_pfmod pro_flux model.
#> zero_flux: TRUE
#> zero_limits: -Inf Inf
#> DSD0_optim: FALSE
#> evenness_factor: 0
#> known_flux_factor: 0
#>
#> A cfp_dat object to be used as input in ConFluxPro models.
#> id_cols: site Date gas
#> number of profiles: 24
#> number of groups: 2
#>
FLUX <- fg_flux(base_dat)
#>
#> validating datasets
#> id_cols: site, Date, gas
#> 24 unique profiles
as_cfp_fgmod(FLUX)
#>
#> A cfp_fgmod fg_flux model.
#> gases: CO2
#> modes: LL
#> param: c_air DS
#> funs: arith harm
#>
#> A cfp_dat object to be used as input in ConFluxPro models.
#> id_cols: site Date gas
#> number of profiles: 24
#> number of groups: 2
#>