Description Usage Arguments Details Value
View source: R/pre_simulation_process.R
Transform an input csv into a suitable form, which is in a form of movement_table.
1 2 3 4 5 6 7 8 |
csv |
File path of an input csv file. See the Detail section to know about form of input csv. |
data |
data.frame as a input instead of |
output_file |
The name of an output file (must be a csv file). If |
area_name |
If |
sep |
Separatator used in |
seed |
Seed for a simulation. |
An input csv file can have following columns. The csv file must contain current_area, condition and next_area column.
current_area
condition
next_area: A character like "1|2|3" will be converted to a numeric vector c(1, 2, 3). Separator (|) can be specifed by sep argument. (This transformation from character to numeric is necessary if you want to read data from a csv file.)
priority: If NA, rep(1, length(next_area)) is set (which means all next_areas have the same priority and cows are randomly allocated among all next_areas). Values must be integer/numeric vectors of the same length with next_area or NA. Multiple values can be specified like next_area.
For further detail of each variable, see movement_table.
A csv file which can be used as an input for simulate_blv_spread().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.