groupVecNames
groupVec Class Data Access
Description
Accesses the column names of a groupVec object.
Usage
groupVecNames(object)
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.)
Value
returns a vector of the column names of the object data.
See Also
Examples
obj <- new("groupVec")
groupVecNames(obj) <- c("colname1", "colname2")
groupVecNames(obj)