cbc.get.col {colbycol} | R Documentation |
Function cbc.read.table
reads a file, stores it column by column in disk file and creates a colbycol
object.
Function cbc.get.col
queries this object and returns a single column.
cbc.get.col(data, column)
data |
a colbycol object |
column |
a single number of column name indicating the column to be retrieved from disk |
column
can be either an existing column name from the file (see colnames.colbycol
) or a number indicating the correlative order of the column within data
.
The data contained in the indicated column
in the original file.
Carlos J. Gil Bellosta
~put references to the literature/web site here ~
cbc.data <- cbc.read.table( system.file("data", "cbc.test.data.txt", package = "colbycol"), sep = "\t" ) ncol( cbc.data ) colnames( cbc.data ) col.01 <- cbc.get.col( cbc.data, 1) col.02 <- cbc.get.col( cbc.data, "col02" )