View source: R/all_cases_per_year.R
all_cases_per_year | R Documentation |
top
Extracts positive bTB cases per year by skin test,
lab and GIF.
all_cases_per_year( df, drop_years = NA, return_plot_table = c("both", "plot only", "table only") )
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
returns a table or visually plot of the number of positive bTB animals
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.