Rdocumentation
powered by
Learn R Programming
sourceR (version 1.0.1)
Prev: Constructs prevalence data
Description
The Prev constructor function returns an R6 Prevalence class which feeds data into sourceR models.
Usage
Prev(data, prev, source, time = NULL)
Arguments
data
long-format data.frame containing prevalence data by source and time.
prev
character string giving name of prevalence column in data
source
character string giving name of source column in data
time
optional column denoting times of prevalence observation
Value
A Prev data structure for use in sourceR models