View source: R/bd_during_year.R
bd_during_year | R Documentation |
top
Check what herds were in BD in a particular year
bd_during_year(df, years_to_check)
df |
BD dataset (bd_df). Created using bd_dataset_fun (bd_df <- bd_dataset_fun(master_tb)) |
years_to_check |
years to check if herd was in a BD during this time. |
DETAILS
returns new indicator column(s) in BD dataset (0 = not in BD, 1 = in BD).
## Not run: if(interactive()){ newdf <- bd_during_year(bd_df, years_to_check = c(2005)) newdf <- bd_during_year(bd_df, years_to_check = c(2005:2006)) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.