itsFile                 package:its                 R Documentation

_F_i_l_e _O_p_e_r_a_t_i_o_n_s _f_o_r _I_r_r_e_g_u_l_a_r _T_i_m_e-_S_e_r_i_e_s _O_b_j_e_c_t_s

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

     File read and write operations for objects of class '"its"'.

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

     readcsvIts(filename,informat=its.format(),outformat=its.format(),tz="",
     usetz=FALSE,header=TRUE,...)
     writecsvIts(x,filename,format=its.format(),tz="",usetz=FALSE,col.names=NA,
     sep=",",...)

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

filename: filename

       x: an object of class '"its"'

format, informat, outformat, tz, usetz: formatting related arguments,
          see 'format.POSIXct'.

  header: see 'read.csv'

col.names, sep: see 'write.table'

     ...: further arguments passed to or from other methods: for
          'readcsvIts' passed to 'read.csv'; for 'writecsvIts' passed
          to 'write.table'

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

     'readcsvIts' reads from a .csv file to a matrix.  The first column
     is assumed to contain dates in text format specified by informat,
     which can optionally be reformatted into the text format
     outformat.  Both of these formats default to the format specified
     by 'its.format'.  To convert the matrix to an its, use  'its' (see
     example)

     'writecsvIts' write an irregular time-series object to a text
     file.

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

     For 'readcsvIts' a matrix

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

     Giles Heywood

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

     'ts', 'POSIXct', 'itsFile', 'itsLags' 'itsJoin' 'itsTimes'
     'itsSubset' 'itsFin' 'itsDisp' 'itsInfo' 'itsCumdif' 'itsArith'

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

     ## Not run: 
     b <- newIts(1:30,ncol=3)
     fname <- tempfile()
     # To write an irregular time-series object to a file one might use
     writecsvIts(b,filename=fname)
     # To read an irregular time-series object from a file one might use
     its(readcsvIts(filename=fname))
     unlink(fname)
     ## End(Not run)

