groupVec
object.
groupVecColumn(object, col.name)
The function finds the given column by comparing
col.name
to the
.Data.names
slot of
object
, and then extracts the corresponding
vectors from the list in the
.Data
slot of
object
. This function can
also be used on the left side of an assignment to replace the given
columns with new values. If it is used in this way, the new data is
coerced to the columns class using
as
before replacement, and
the column lengths are checked.
obj <- new("groupVec") groupVecNames(obj) <- "colname1" groupVecColumn(obj, "colname1") <- c(1, 2, 3) groupVecColumn(obj, "colname1")