| dim,syndromicD-method | R Documentation |
syndromicD
or syndromicW objectGet dimension information for a syndromicD
or syndromicW object
## S4 method for signature 'syndromicD' dim(x) ## S4 method for signature 'syndromicW' dim(x)
x |
|
a vector with three items: (1) The number of time points monitored (the number of rows for all slots of the object); (2)The number of syndromic groups monitored, as determined by the number of columns in the slot observed; (3) The number of detection algorithms used, as determined by the third dimension of the slot alarms.
data(lab.daily)
my.syndromicD <- raw_to_syndromicD (id=lab.daily$SubmissionID,
syndromes.var=lab.daily$Syndrome,
dates.var=lab.daily$DateofSubmission,
date.format="%d/%m/%Y")
dim(my.syndromicD)
columns <- dim(my.syndromicD)[2]
print(columns)
##WEEKLY
data(lab.daily)
my.syndromicW <- rawD_to_syndromicW (id=lab.daily$SubmissionID,
syndromes.var=lab.daily$Syndrome,
dates.var=lab.daily$DateofSubmission,
date.format="%d/%m/%Y")
dim(my.syndromicW)
columns <- dim(my.syndromicW)[2]
print(columns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.