redefine_route_levels: Redefine infection routes

Description Usage Arguments Value

View source: R/post_simulation_process.R

Description

Recategorize cause_infection column in a cow_table.

Usage

1
2
3
4
5
6
7
8
redefine_route_levels(
  cows,
  drop,
  language = NULL,
  route_levels = NULL,
  route_labels = NULL,
  gather = T
)

Arguments

cows

See cow_table.

drop

Drop infection routes not in csv or cows from a legend. Ignored when route_levels is specified.

language

Language to which translate messages. At present, only English and Japanese is implemented.

route_levels

If specified, infection routes not specified in route_levels are coarced into "other" category. See cause_infection in cow_table to know about default categories.

route_labels

Specify if you want to rename categories.

gather

Whether infection routes as "tie_exposed_baseline", "tie_exposed_risk", "tie_non_exposed" and "free" should be gathered to one category "insects" or treated as-is.

Value

A cow_table with recategorized cause_infection.


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