cbc.get.col {colbycol}R Documentation

Reads a single column from the original file into memory

Description

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.

Usage

cbc.get.col(data, column)

Arguments

data a colbycol object
column a single number of column name indicating the column to be retrieved from disk

Details

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.

Value

The data contained in the indicated column in the original file.

Author(s)

Carlos J. Gil Bellosta

References

~put references to the literature/web site here ~

Examples

    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" )

[Package colbycol version 0.4 Index]