[-methods            package:surveillance            R Documentation

_M_e_t_h_o_d_s _f_o_r "[": _E_x_t_r_a_c_t_i_o_n _o_r _S_u_b_s_e_t_t_i_n_g _i_n _P_a_c_k_a_g_e '_s_u_r_v_e_i_l_l_a_n_c_e'

_D_e_s_c_r_i_p_t_i_o_n:

     Methods for '"["', i.e., extraction or subsetting of the 'sts'
     class in package 'surveillance'.

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

     'drop' is always 'FALSE'.

_M_e_t_h_o_d_s:

     There are more than these:

     _x = "_s_t_s", _i = "_m_i_s_s_i_n_g", _j = "_m_i_s_s_i_n_g", _d_r_o_p= "_A_N_Y" ... 

     _x = "_s_t_s", _i = "_n_u_m_e_r_i_c", _j = "_m_i_s_s_i_n_g", _d_r_o_p= "_m_i_s_s_i_n_g" ... 

     _x = "_s_t_s", _i = "_m_i_s_s_i_n_g", _j = "_n_u_m_e_r_i_c", _d_r_o_p= "_m_i_s_s_i_n_g" ... 

_E_x_a_m_p_l_e_s:

     data(ha)
     #Convert to S4 object
     shp <- system.file("shapes/berlin.shp",package="surveillance")
     has4 <- aggregate(disProg2sts(ha,map=readShapePoly(shp,IDvar="SNAME")),nfreq=13)

     #A suite of of simple tests (inspired by the Matrix package)
     stopifnot(identical(has4, has4[]))

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

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

