mvl_fused_write_objects | R Documentation |
This function can concatenate a mixture of R and MVL objects. For vectors it is the equivalent of c()
. For array and matrices it works as cbind()
For data frames it works as rbind
, but row names are always dropped.
mvl_fused_write_objects(MVLHANDLE, L, name = NULL, drop.rownames = TRUE)
MVLHANDLE |
a handle to MVL file produced by |
L |
a list of suitable R objects (vector, array, data.frame) or equivalent MVL objects. |
name |
if specified add a named entry to MVL file directory |
drop.rownames |
set to TRUE to prevent rownames from being written |
any object of class MVL_OFFSET that describes an offset into this MVL file. MVL offsets are vectors and can be concatenated. They can be written to MVL file directly, or as part of another object such as list.
## Not run:
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_object(Mtmp, runif(100), "vec1")
mvl_write_object(Mtmp, runif(100), "vec2")
Mtmp<-mvl_remap(Mtmp)
mvl_fused_write_objects(Mtmp, list(Mtmp["vec1", ref=TRUE], Mtmp["vec2", ref=TRUE], runif(3)),
name="vec3")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.