subset-methods: Sub-setting

[,syndromicD,ANY,ANY,ANY-methodR Documentation

Sub-setting

Description

Allows sub-setting of syndromic objects (syndromicD or syndromicW) with all of its slots, by a start and end number of rows.

Usage

## S4 method for signature 'syndromicD,ANY,ANY,ANY'
x[i, j]

## S4 method for signature 'syndromicW,ANY,ANY,ANY'
x[i, j]

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")
## create a subset that ony includes the first 10 time points
## (all the slots are trimmed from rows 1 to 10)
## note the use of "," instead of ":"
subset <- my.syndromicD[1,10]


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