prepare_data: Process raw data to suitable forms

Description Usage Arguments Value

View source: R/pre_simulation_process.R

Description

Process raw data to suitable forms to use in simulation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
prepare_data(
  excel,
  param,
  output = F,
  cow_data = NULL,
  area_data = NULL,
  movement_data = NULL,
  cow_output_file = NULL,
  area_output_file = NULL,
  movement_output_file = NULL,
  sep = "[,\t\r\n |;:]+",
  seed = NULL,
  ...
)

Arguments

excel

Set this or cow_data, area_data and movement_data.

param

See param.

output

When TRUE, create output csv files with names of "cow.csv", "area.csv" and "movement.csv" into a working directory. Shorthand form of setting "xxx.csv" to xxx_output_file.

cow_data

See prepare_cows() for detail.

area_data

See prepare_area() for detail.

movement_data

See prepare_movement() for detail.

cow_output_file, area_output_file, movement_output_file

If not NULL, created data is exported to the files with these names (must be csv files).

sep

Separatator used in capacity column of area data. See prepare_area() for detail.

seed

Seed for a simulation.

...

Other arguments passed to prepare_cows().

Value

csv files which can be used as an input for simulate_blv_spread().


fmsan51/blvibmjp documentation built on Sept. 2, 2020, 9:04 p.m.