The Y constructor function returns an R6 Y class which feeds disease count data into sourceR models.
Y(data, y, type, time = NULL, location = NULL)
long-format data.frame containing source data
character string giving name of disease counts column in data
character string giving name of type column in data
optional column denoting times of disease count observations
optional column denoting location of disease count observations
A Y disease count data structure for use in sourceR models