Description Usage Arguments Details Value Examples
Initialize big matrices or vectors appropriately (conditioned on the status of support for large datasets - see Details).
1 2 3 4 5 |
name |
prefix to be used for file stored on disk |
nr |
number of rows |
nc |
number of columns |
n |
length of the vector |
vmode |
mode - "integer", "double" |
initdata |
Default is NA |
dim |
Integer vector indicating the dimensions of the array to initialize |
These functions are meant to be used by developers. They provide means to appropriately create big vectors or matrices for packages like oligo and crlmm (and friends). These objects are created conditioned on the status of support for large datasets.
If the 'ff' package is loaded (in the search path), then an 'ff' object is returned. A regular R vector or array is returned otherwise.
1 2 3 4 5 6 7 8 | x <- initializeBigVector("test", 10)
class(x)
x
if (isPackageLoaded("ff"))
finalizer(x) <- "delete"
rm(x)
initializeBigMatrix(nr=5L, nc=5L)
initializeBigArray(dim=c(10, 5, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.