groupVec Class Data Access
groupVec object.
groupVecNames(object)
object data.
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).
obj <- new("groupVec")
groupVecNames(obj) <- c("colname1", "colname2")
groupVecNames(obj)