SharedObject {SharedObject} | R Documentation |
Create an empty shared object with a specific length and attributes.
SharedObject( mode = c("raw", "logical", "integer", "numeric", "complex"), length, attrib = list(), ... )
mode |
the type of the shared object |
length |
the length of the shared object |
attrib |
the attributes of the shared object |
... |
Parameters that is used to create the shared object, please
refer to |
An R vector
## Create an empty shared vector x1 <- SharedObject(mode = "numeric", length = 10) x1 ## Create an empty shared matrix x2 <- SharedObject(mode = "numeric", length = 6, attrib = list(dim = c(2L,3L))) x2