disProg2sts           package:surveillance           R Documentation

_C_o_n_v_e_r_t _d_i_s_P_r_o_g _o_b_j_e_c_t _t_o _s_t_s _a_n_d _v_i_c_e _v_e_r_s_a

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

     A small helper function to convert a 'disProg' object to become an
     object of the S4 class 'sts' and vice versa. In the future the
     'sts' should replace the 'disProg' class, but for now this
     function allows for conversion between the two formats.

_U_s_a_g_e:

        disProg2sts(disProgObj, map=NULL)
        sts2disProg(sts)

_A_r_g_u_m_e_n_t_s:

disProgObj: object of class disProg

     map: 'SpatialPolygonsDataFrame' object containing the map
          visualization

     sts: Object of class 'sts' to convert

_V_a_l_u_e:

     an object of class 'sts' or 'disProg', respectively.

_S_e_e _A_l_s_o:

     'sts-class'

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

       data(ha)
       print(disProg2sts(ha))
       class(sts2disProg(disProg2sts(ha)))

