Learn R Programming

splusTimeDate (version 2.5.8)

groupVecNames: groupVec Class Data Access

Description

Accesses the column names of a groupVec object.

Usage

groupVecNames(object)

Value

returns a vector of the column names of the object data.

Arguments

object

the object to access.

Details

The function returns the names slot of the object.

You can use it on the left side of an assignment to replace the names vector with a new value. In that case, the replacement value is coerced to class character using as. Replacing the names with a vector of a different length causes the classes and columns slots of object to be extended or truncated to the new length. (The default class is numeric for the extension.)

See Also

groupVecColumn, groupVecClasses, groupVecData, groupVec class

Examples

Run this code
obj <- new("groupVec") 
groupVecNames(obj) <- c("colname1", "colname2") 
groupVecNames(obj) 

Run the code above in your browser using DataLab