matscan                 package:emu                 R Documentation

_R_e_a_d _m_a_t_r_i_x _d_a_t_a _f_r_o_m _a _f_i_l_e

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

     Reads matrix data from a file

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

     matscan(file, num.cols=count.fields(file)[1], what=0, sk=0)

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

    file: A filename. 

num.cols: The number of columns of data in the file. 

    what: A template for the data elements in the file, it should be a
          number for numeric data (the default) or a string for string
          data. Note that an Splus matrix can only hold one type of
          data (string or numeric), for mixed types use data tables and
          the 'read.table' function. 

      sk: The number of leading lines of the file to skip. 

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

     This function has been partially superceeded by the introduction
     of data frames and the read.table function.  It is still useful
     however for reading data into Splus matrix objects.

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

     A matrix corresponding to the data in 'file'.

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

     read.table

