read_hisafe: Read output from one or more Hi-sAFe simulations

Description Usage Arguments Value Examples

View source: R/read.R

Description

Reads the designated output profiles from one or more Hi-sAFe simulations

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
read_hisafe(
  hip = NULL,
  path = NULL,
  simu.names = "all",
  profiles = "all",
  show.progress = TRUE,
  read.inputs = TRUE,
  max.size = 300,
  date.min = NA,
  date.max = NA,
  dates = NULL
)

Arguments

hip

An object of class "hip". To create a hip object see define_hisafe. If hip is not provided, then path is required and the input data for the experiment is read from the experiment summary .csv file created when building the experiment.

path

A character string of the path to the directory containing the Hi-sAFe simulation folders. If hip is not provided, then path is required. If hip is provided, path is ignored.

simu.names

A character vector of the names of the simulations to read. If "all", the default, then all simulations in the folder are read.

profiles

A character vector of the names of Hi-sAFe output profiles to read. #' If "all" the default, reads all supported Hi-sAFe output profiles. For currently supported profiles see: hisafe_profiles

show.progress

Logical indicating whether progress messsages should be printed to the console.

read.inputs

Logical indicating whether data should be read from the .PLD and .SIM files for the tree.info and plot.info data slots. Setting this to FALSE severly limits hisafer's plotting/analysis capacity. Should only be set to FALSE if input files are corrupted.

max.size

The maximum file size (MB) that should be read. Files larger than this value will be ignored, with a warning.

date.min

A character string of the minimum date to keep, in the format "YYYY-MM-DD". If NA, the minimum date in the output data is used. Only used if dates is NULL.

date.max

A character string of the maximum date to keep, in the format "YYYY-MM-DD". If NA, the maximum date in the output data is used. Only used if dates is NULL.

dates

A character vector (in the format "YYYY-MM-DD") or a vector of class Date of the dates to keep. If NULL, then date.max and date.min are used instad.

Value

An object of class "hop". This is a list of 12 data frames (tibbles):

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Reading in Hi-sAFe simulation:
myexp <- read_hisafe(myhip)

# If only the tree data is required:
mytreeexp <- read_hisafe(myhip, profiles = "trees")

## End(Not run)

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