toFileDisProg          package:surveillance          R Documentation

_W_r_i_t_i_n_g _o_f _D_i_s_e_a_s_e _D_a_t_a

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

     Writing of disease data (disProg object) into a file.

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

         toFileDisProg(disProgObj, toFile)

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

disProgObj: The disProgObj to save in file

  toFile: The path and filename of the file to save

_D_e_t_a_i_l_s:

     Writing of 'disProg' object into a file as illustrated in the
     example.

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

    file: The file with the disease data

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

     'readData', 'sim.pointSource'

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

         disProgObj <- sim.pointSource(length=200, K=1)
         toFileDisProg(disProgObj, "./simulation.txt")
         mydisProgObj <- readData("./simulation",sysPath=FALSE)

