prepare_area: Process raw area 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 area_table.

Usage

1
2
3
4
5
6
7
prepare_area(
  csv,
  data = NULL,
  output_file = 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.

sep

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

seed

Seed for a simulation.

Details

An input csv file can have following columns. The csv file must contain area_type column.

For further detail of each variable, see area_table.

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.