read_cows: Read cow information from simulation csvs

Description Usage Arguments Value

View source: R/post_simulation_process.R

Description

Read information of cows which owned by a farm at the end of simulations from csv files and redefine infection routes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
read_cows(
  param,
  output_filename = param$output_filename,
  output_dir = param$output_dir,
  i_simulation = seq_len(param$n_simulation)
)

read_final_cows(
  param,
  route_levels = NULL,
  route_labels = NULL,
  output_filename = param$output_filename,
  output_dir = param$output_dir,
  i_simulation = seq_len(param$n_simulation),
  drop = T,
  gather = T
)

Arguments

param, output_filename, output_dir

See param.

i_simulation

csvs with this numbers are read.

route_levels, route_labels, drop, gather

See redefine_route_levels.

Value

A cow_table with an additional column i_simulation.


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