mvl_fused_write_objects {RMVL} | R Documentation |
Concatenate objects and write result into MVL file.
Description
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.
Usage
mvl_fused_write_objects(MVLHANDLE, L, name = NULL, drop.rownames = TRUE)
Arguments
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 |
Value
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.
Examples
## 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)
[Package RMVL version 1.1.0.0 Index]