mergeData              package:RSurvey              R Documentation

_M_e_r_g_e _T_i_m_e-_s_t_a_m_p_e_d _D_a_t_a

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

     This function merges temporal data with the current time-stamped
     survey data.

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

     mergeData(file = NULL)

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

    file: either a character string naming a file or a connection.

_F_o_r_m_a_t:

     The tab delineated temporal file, '*.txt', contains the following
     variables:

       '[,1]'   character  date/time
       '[,2:]'  numeric    state variables

     The first '[1,]' and second '[2,]' rows are reserved for column
     descriptors and units, respectively.  Units associated with
     date/time values are based on format character strings described
     in 'strptime'.

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

     The 'cols' and 'data.raw' components of 'srvy.dat' are replaced by
     the  merged data set.

_N_o_t_e:

     This function is not currently accessible through a GUI.

_A_u_t_h_o_r(_s):

     Fisher, J. C.

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

     'approx'

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

     f <- system.file("RSurvey-ex/river.txt", package = "RSurvey")
     con <- file(f, open = "r", encoding = "latin1")
     d <- readFile(con)
     srvy.dat("cols", d$cols)
     srvy.dat("vars", d$vars)
     srvy.dat("data.raw", d$dat)

     f <- system.file("RSurvey-ex/river-temperature.txt", package = "RSurvey")
     con <- file(f, open = "r", encoding = "latin1")
     mergeData(con)
     srvy.dat("cols")
     srvy.dat("data.raw")

