all_cases_per_year: all_cases_per_year

View source: R/all_cases_per_year.R

all_cases_per_yearR Documentation

all_cases_per_year

Description

top Extracts positive bTB cases per year by skin test, lab and GIF.

Usage

all_cases_per_year(
  df,
  drop_years = NA,
  return_plot_table = c("both", "plot only", "table only")
)

Arguments

df

master_tb dataset

drop_years

years to drop e.g. c(2022) or c(2021, 2022)

return_plot_table

do you want to return a plot, table version or both.

Details

DETAILS

Value

returns a table or visually plot of the number of positive bTB animals

Examples

## Not run: 
if(interactive()){
 #cases <- all_cases_per_year(master_tb)
 #cases <- all_cases_per_year(master_tb, drop_years = c(2022))
 #cases <- all_cases_per_year(master_tb, drop_years = c(2022), return_plot_table = "plot only")
 #cases <- all_cases_per_year(master_tb, drop_years = c(2022), return_plot_table = "table only")
 }

## End(Not run)

044mj/cvera documentation built on Feb. 13, 2023, 10:02 p.m.