Learn R Programming

sourceR (version 1.0.1)

Y: Constructs disease count data

Description

The Y constructor function returns an R6 Y class which feeds disease count data into sourceR models.

Usage

Y(data, y, type, time = NULL, location = NULL)

Arguments

data
long-format data.frame containing source data
y
character string giving name of disease counts column in data
type
character string giving name of type column in data
time
optional column denoting times of disease count observations
location
optional column denoting location of disease count observations

Value

A Y disease count data structure for use in sourceR models