groupVec Class Data Access

DESCRIPTION:

Access the column names of a groupVec object.

USAGE:

groupVecNames(object) 

REQUIRED ARGUMENTS:

object
object to be accessed.

VALUE:

vector of column names of object data.

DETAILS:

The function returns the .Data.names slot of object. It can also be used 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, replacement of the names with a vector of a different length will cause the .Data.classes and .Data slots of object to be extended or truncated to the new length (default class is numeric for extension).

SEE ALSO:

, , , class

EXAMPLES:

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