Skip to contents

These functions help coerce different object types in ConFluxPro.

Usage

as_cfp_fgmod(x)

as_cfp_pfmod(x)

Arguments

x

An object which should be coerced

Value

Either a cfp_fgmod or cfp_pfmod model frame

Functions

  • as_cfp_fgmod(): to cfp_fgmod

  • as_cfp_pfmod(): to cfp_pfmod

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 
#>