make.barrier: Modify a hbf with HexSim barrier data

Description Usage Arguments Details

View source: R/generic.helper.fun.R

Description

This function replaces mortality and deflection values and saves the file with a new name. Mortality and deflection values have to be passed in pairs for each fence section. So, if you want to generate three files, and you only have one barrier pair you have to provide six values.

Usage

1
2
3
4
5
6
7
8
9
make.barrier(
  template,
  mortality,
  deflection,
  npairs,
  file.name,
  sufs = NULL,
  dir.out = NULL
)

Arguments

template

The full name of the hbf barrier file to use as template

mortality

is the vector of new mortality values that are replaced

deflection

is the vector of new deflection values that are replaced

npairs

The number of barrier section

file.name

A character vector with the output file name

sufs

A character vector with suffix(es)

dir.out

Path where to save the output. If NULL (default), the working directory is used

Details

Several files can be generated using mapply() to pass one template and one file.name at the time (see vignette for details).


carlopacioni/HexSimR documentation built on Nov. 28, 2020, 4:12 p.m.