read.AnnotatedDataFrame       package:Biobase       R Documentation

_R_e_a_d '_A_n_n_o_t_a_t_e_d_D_a_t_a_F_r_a_m_e'

_D_e_s_c_r_i_p_t_i_o_n:

     Create an instance of class AnnotatedDataFrame by reading a file.

_U_s_a_g_e:

     read.AnnotatedDataFrame(filename, path,
          sep = "\t", header = TRUE, quote = "", stringsAsFactors = FALSE, 
          row.names = 1L,
          varMetadata.char="#",
          widget = getOption("BioC")$Base$use.widgets,
          sampleNames = character(0), ...) 

_A_r_g_u_m_e_n_t_s:

filename: file or connection from which to read.

    path: (optional) directory in which to find 'filename'.

row.names: this argument gets passed on to 'read.table' and will be
          used for the row names of the phenoData slot.

varMetadata.char: lines beginning with this character are used for the
          'varMetadata' slot. See examples.

sep, header, quote, stringsAsFactors, ...: further arguments that get
          passed on to 'read.table'.

  widget: logical. Currently this is _not_ implemented, and setting
          this option to 'TRUE' will result in an error. In a precursor
          of this function, 'read.phenoData', this option could be used
          to open an interactive GUI widget for entering the data.

sampleNames: optional argument that could be used in conjunction with
          'widget'; do not use.

_D_e_t_a_i_l_s:

     The function 'read.table' is used to read 'pData'. The argument
     'varMetadata.char' is passed on to that function as its argument
     'comment.char'. Lines beginning with  'varMetadata.char' are
     expected to contain further information on the column headers of
     'pData'. The format is of the form: '# variable: textual
     explanation of the variable, units, measurement method, etc.'
     (assuming that '#' is the value of 'varMetadata.char'). See also
     examples.

_V_a_l_u_e:

     An instance of class 'AnnotatedDataFrame'

_A_u_t_h_o_r(_s):

     Martin Morgan <mtmorgan@fhcrc.org> and Wolfgang Huber, based on
     'read.phenoData' by Rafael A. Irizarry.

_S_e_e _A_l_s_o:

     'AnnotatedDataFrame' for additional methods, 'read.table' for
     details of reading in phenotypic data

_E_x_a_m_p_l_e_s:

     exampleFile = system.file("extdata", "pData.txt", package="Biobase")

     adf <- read.AnnotatedDataFrame(exampleFile)
     adf
     head(pData(adf))
     head(readLines(exampleFile))

