Y: Constructs disease count data

Description Usage Arguments Value

View source: R/data.R

Description

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

Usage

1
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


sourceR documentation built on Aug. 31, 2020, 5:06 p.m.

Related to Y in sourceR...