groupVecColumn
groupVec Class - Data Access

Description

Accesses the columns of a groupVec object.

Usage

groupVecColumn(object, col.name)

Arguments

object the object to access.
col.name the name of columns to access.

Details

The function finds the given column by comparing col.name to the names slot of object, and then extracts the corresponding vectors from the list in the columns slot of object.
You can use this function on the left side of an assignment to replace the given columns with new values. The new data is coerced to the columns class using as before the replacement, and the column lengths are checked.
Value
returns the data in the given columns.
See Also
groupVecData, groupVecNames, groupVecClasses, groupVec class.
Examples
obj <- new("groupVec") 
groupVecNames(obj) <- "colname1" 
groupVecColumn(obj, "colname1") <- c(1, 2, 3) 
groupVecColumn(obj, "colname1") 
#[1] 1 2 3
Package splusTimeDate version 6.1.1-7
Package Index