View source: R/get_tested_herds.R
get_tested_herds | R Documentation |
Gets herds that have been sampled or tested within a surveillance programme for the selected years. You can choose between herds that have submitted samples or herds for which a certain number of samples have been examined for a specific disease.
get_tested_herds(
eos_table,
year = as.numeric(format(Sys.Date(), "%Y")) - 1,
species = NULL,
production = NULL,
disease = NULL,
min_prover = -1,
tested = FALSE
)
eos_table |
[ |
year |
[ |
species |
[ |
production |
[ |
disease |
[ |
min_prover |
[ |
tested |
[ |
For programmes having several surveillance streams, it is possible to select surveillance streams based on species and production type. The species and/or production type must be written as in the eos-table. Be aware that species and production type may be missing and for production type it may often be wrong. Therefore, selection by production type and/or species may remove saker that you would want to keep. No selection is performed when the species or production type is missing from the eos-table.
It is possible to define a minimum requirement of number of samples received or tested. For programmes covering several infections, it is necessary to input the disease for which the samples should have been tested. The disease name must be given as it is written in the column name for the number of examined samples.
The eos_table name is the same name as the table name in the EOS data base.
data.frame
with tested or sampled locations.
Petter Hopp Petter.Hopp@vetinst.no
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.