mvl_get_groups {RMVL} | R Documentation |
Retrieve indices belonging to one or more groups
Description
This function is passed the prev
vector computed by mvl_write_groups
and one or more indices from the first
vector.
Usage
mvl_get_groups(prev, first_indices)
Arguments
prev |
MVL_OBJECT |
first_indices |
indices from |
Value
a vector of indices
See Also
Examples
## Not run:
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_object(Mtmp, data.frame(x=runif(100), y=1:100), "df1")
Mtmp<-mvl_remap(Mtmp)
mvl_write_groups(Mtmp, list(Mtmp$df1[,"x",ref=TRUE], Mtmp$df1[,"y", ref=TRUE]), "df1_groups")
Mtmp<-mvl_remap(Mtmp)
print(mvl_get_groups(Mtmp["df1_groups", ref=TRUE]["prev", ref=TRUE], Mtmp$df1_groups$first[1:5]))
## End(Not run)
[Package RMVL version 1.1.0.0 Index]