Learn R Programming

vectorsurvR (version 1.3.2)

getPoolsComparisionTable: Get Pools Frequency Table

Description

`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.

Usage

getPoolsComparisionTable(pools, interval, target_disease, separate_by = NULL)

Value

Frequency table of for pools data

Arguments

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.

Examples

Run this code
getPoolsComparisionTable(sample_pools,
                         interval = "Biweek",
                         target_disease = "WNV",
                          separate_by = "species")

Run the code above in your browser using DataLab