View source: R/getPoolsComparisonTable.R
getPoolsComparisionTable | R Documentation |
'getPoolsComparisionTable()' produces a frequency table for positive, negative, and pending pools counts by year and species. The more years present in the data, the larger the table.
getPoolsComparisionTable(pools, interval, target_disease, separate_by = NULL)
pools |
Pools data retrieved from 'getPools()' |
interval |
Calculation interval for comparison table, accepts “collection_date”,“Biweek”,“Week”, and “Month |
target_disease |
The disease to calculate infection rate for–i.e. “WNV”. Disease acronyms are the accepted input. To see a list of disease acronyms, run 'unique(pools$target_acronym)' |
separate_by |
Separate/group the calculation by 'trap','species' or 'agency'. Default NULL does not separate. |
Frequency table of for pools data
getPoolsComparisionTable(sample_pools,
interval = "Biweek",
target_disease = "WNV",
separate_by = "species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.