home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / read.table < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.9 KB  |  56 lines

  1.     
  2.     _d_a_t_a _i_n_p_u_t
  3.     
  4.          read.table(file=, header=FALSE, sep="", row.names,
  5.                  col.names, as.is=FALSE, na.strings="NA", skip=0)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.             file : the name of the file which the data are to be
  10.                    read from.  Each row of the table appears as
  11.                    one line of the file.
  12.     
  13.           header : a logical value indicating whether the file
  14.                    contains the names of the variables as its
  15.                    first line.
  16.     
  17.              sep : the field separator character.  Values on
  18.                    each line of the file are separated by this
  19.                    character.
  20.     
  21.        row.names : a vector of row names. This can be a vector
  22.                    giving the actual row names, or a single
  23.                    number giving the column of the table which
  24.                    contains the row names, or character string
  25.                    giving the name of the table column contain-
  26.                    ing the row names.
  27.     
  28.        col.names : a vector of optional names for the variables.
  29.                    The default is to use "V" followed by the
  30.                    column number
  31.     
  32.            as.is : the default behavior of read.table is to con-
  33.                    vert non-numeric variables to factors.  The
  34.                    variable as.is controls this conversion.  Its
  35.                    value is either a vector of logicals (values
  36.                    are recycled if necessary), or a vector of
  37.                    numeric indices which specify which columns
  38.                    should be left as character strings.
  39.     
  40.       na.strings : a vector strings which are to be interpreted
  41.                    as NA values.
  42.     
  43.             skip : the number of lines of the data file to skip
  44.                    before beginning to read data.
  45.     
  46.     _V_a_l_u_e:
  47.     
  48.          A data frame containing a representation of the data in
  49.          the file.  This function is the principal means of
  50.          reading tabular data into R.
  51.     
  52.     _S_e_e _A_l_s_o:
  53.     
  54.          scan, data.frame.
  55.     
  56.