Learn R Programming

splusTimeDate (version 2.5.8)

groupVecClasses: groupVec Class Data Access

Description

Accesses or replacees the column classes vector of a groupVec object.

Usage

groupVecClasses(object)

Value

returns a vector of classes of object data.

Arguments

object

the object to access.

Details

This function returns the classes slot of object.

It can also be used on the left side of an assignment to replace the classes slot with a new value. In that case, the data in the object columns are coerced to the new classes. Also, replacement of the classes with a vector of a different length causes the names and columns slots of object to be extended or truncated to the new length.

See Also

groupVecColumn, groupVecNames, groupVecData, groupVec class.

Examples

Run this code
obj <- new("groupVec") 
groupVecClasses(obj) <- c("numeric", "character") 
groupVecClasses(obj) 

Run the code above in your browser using DataLab