mvl_write_object | R Documentation |
Write R object into MVL file
mvl_write_object(MVLHANDLE, x, name = NULL, drop.rownames = FALSE)
MVLHANDLE |
a handle to MVL file produced by mvl_open() |
x |
a suitable R object (vector, array, list, data.frame) or a vector-like MVL_OBJECT |
name |
if specified add a named entry to MVL file directory |
drop.rownames |
set to TRUE to prevent rownames from being written |
an 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.
mvl_indexed_copy
, mvl_merge
## Not run:
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_object(Mtmp, runif(100), "vec1")
L<-list()
L[["x"]]<-mvl_write_object(Mtmp, 1:5)
L[["y"]]<-mvl_write_object(Mtmp, c("a", "b"))
L[["df"]]<-mvl_write_object(Mtmp, data.frame(x=1:100, z=runif(100)))
mvl_write_object(Mtmp, L, "L")
Mtmp<-mvl_remap(Mtmp)
print(Mtmp$L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.