stics_budget_comp: Compare Hi-sAFe and STICS budget calcualations

Description Usage Arguments Value See Also Examples

View source: R/budget.R

Description

Compares Hi-sAFe and STICS budget calcualations for debugging purposes.

Usage

1
2
3
4
5
6
7
8
stics_budget_comp(
  hop,
  cycle,
  simu.names = "all",
  years = "all",
  save.table = TRUE,
  output.path = NULL
)

Arguments

hop

An object of class hop or face.

cycle

A character vector of the cycle to analyze Supported cycles include: 'water', and 'nitrogen.

simu.names

A character vector of the SimulationNames within hop to include. Use "all" to include all available values.

years

A numeric vector of the years within hop to include. Use "all" to include all available values.

save.table

Logical indicating whether a table of comparison data should be saved to output.path.

output.path

A character string indicating the path to the directory where plots should be saved. If NULL, the experiment/simulation path is read from the hop object, and a directory is created there called "analysis/budgets". The tables and plots will be saved in this directory.

Value

A data.frame (tibble) containing the budget comparison.

See Also

Other hisafe analysis functions: LER_summary(), LER(), analyze_hisafe(), cycle_summary(), hisafe_budget(), plot_hisafe_cycle_bar(), plot_hisafe_cycle_ts(), write_hop()

Examples

1
2
3
4
## Not run: 
water.budget.comp <- stics_budget_comp(myhop, "water")

## End(Not run)

kevinwolz/hisafer documentation built on Oct. 19, 2020, 4:43 p.m.