Description Usage Arguments Details
View source: R/generic.helper.fun.R
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.
1 2 3 4 5 6 7 8 9 | make.barrier(
template,
mortality,
deflection,
npairs,
file.name,
sufs = NULL,
dir.out = NULL
)
|
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 |
Several files can be generated using mapply() to pass one template
and
one file.name
at the time (see vignette for details).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.