get_results: Load and analyse YAPOS results

Description Usage Arguments Details Value Examples

View source: R/get_results.R

Description

This function loads all the results of the simulation contained in the target NetCDF file and returns a set of pre-defined plots and tables. If the text output files containing the simulation dual values are present in the same folder of the NetCDF file, this function loads and store their value in a data frame.

Usage

1
get_results(nc_output_file, create_plots = TRUE)

Arguments

nc_output_file

Path of the NetCDF containing the results

create_plot

Flag to define if the function should generate also the plots

Details

Returned data include the following data frames:

The plots are instead:

The dual data is loaded only if the function finds in the same directory of 'nc_output_file' the txt files containing the dual results saved by YAPOS.

Value

A list containing results' data and plots

Examples

1
2
target_nc_file <- system.file("extdata", "es-pt-fr.nc", package = "yaposer", mustWork = TRUE)
res <- get_results(target_nc_file)

matteodefelice/yaposer documentation built on June 18, 2020, 9:35 p.m.