prepare_movement: Process raw movement data to suitable form

Description Usage Arguments Details Value

View source: R/pre_simulation_process.R

Description

Transform an input csv into a suitable form, which is in a form of movement_table.

Usage

1
2
3
4
5
6
7
8
prepare_movement(
  csv,
  data = NULL,
  output_file = NULL,
  area_name = NULL,
  sep = "[,\t\r\n |;:]+",
  seed = NULL
)

Arguments

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 csv. See the Detail section to know about form of input data.

output_file

The name of an output file (must be a csv file). If NULL, no output file is created.

area_name

If current_area and next_area are specified by character, specify integer area_id like c(barnA = 1, barnB = 2, ...).

sep

Separatator used in priority column. See explanation of priority in Detail section.

seed

Seed for a simulation.

Details

An input csv file can have following columns. The csv file must contain current_area, condition and next_area column.

Value

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


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