mvl_write_serialized_object | R Documentation |
This function packages the object into a raw vector before writing it out. The raw vector is tagged with special class that assures the object is automatically converted back to R representation when reading. Serialized objects can only be read completely.
mvl_write_serialized_object(MVLHANDLE, x, name = NULL)
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 |
This function can be used in rare cases when it is important to store a complete R object, but it is not important for it to be accessible by other programs, and it is not important to conserve memory or bandwidth.
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_write_object
## Not run:
Mtmp<-mvl_open("tmp_a.mvl", append=TRUE, create=TRUE)
mvl_write_serialized_object(Mtmp, lm(rnorm(100)~runif(100)), "LM1")
Mtmp<-mvl_remap(Mtmp)
print(mvl2R(Mtmp$LM1))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.