surveillance (version 1.12.1)

[,sts-methods: Extraction and Subsetting of "sts" Objects

Description

"["-methods, i.e., extraction or subsetting of the "sts" class in package surveillance.

Note that [<- methods (i.e. subassignments) are currently not supported.

The drop argument is always FALSE.

Arguments

Examples

Run this code
data("ha.sts")
haagg <- aggregate(ha.sts, nfreq=13)

plot(haagg[, 3])       # Single series
plot(haagg[1:30, 3])   # Somewhat shorter

#Counts at time 20
plot(haagg[20, ], type = observed ~ unit)

Run the code above in your browser using DataLab