dim-methods: Get dimension information for a 'syndromicD' or 'syndromicW'...

dim,syndromicD-methodR Documentation

Get dimension information for a syndromicD or syndromicW object

Description

Get dimension information for a syndromicD or syndromicW object

Usage

## S4 method for signature 'syndromicD'
dim(x)

## S4 method for signature 'syndromicW'
dim(x)

Arguments

x

syndromicD object

Value

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.

Examples

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)


nandadorea/vetsyn documentation built on April 30, 2022, 1:15 a.m.