View source: R/blockwiseData.R
newBlockwiseData | R Documentation |
These functions create, merge and expand BlockwiseData objects for holding in-memory or disk-backed blockwise data. Blockwise here means that the data is too large to be loaded or processed in one piece and is therefore split into blocks that can be handled one by one in a divide-and-conquer manner.
newBlockwiseData(
data,
external = FALSE,
fileNames = NULL,
doSave = external,
recordAttributes = TRUE,
metaData = list())
mergeBlockwiseData(...)
addBlockToBlockwiseData(
bwData,
blockData,
external = bwData$external,
blockFile = NULL,
doSave = external,
recordAttributes = !is.null(bwData$attributes),
metaData = NULL)
data |
A list in which each component carries the data of a single block. |
external |
Logical: should the data be disk-backed ( |
fileNames |
When |
doSave |
Logical: should data be saved? If this is |
recordAttributes |
Logical: should |
metaData |
A list giving any additional meta-data for |
bwData |
An existing |
blockData |
A vector, matrix or array carrying the data of a single block. |
blockFile |
File name where data contained in |
... |
One or more objects of class |
Several functions in this package use the concept of blockwise, or "divide-and-conquer", analysis. The BlockwiseData class is meant to hold the blockwise data, or all necessary information about blockwise data that is saved in disk files.
The data can be stored in disk files (one file per block) or in-memory. In memory storage is provided so that same code can be used for both smaller (single-block) data where disk storage could slow down operations as well as larger data sets where disk storage and block by block analysis are necessary.
All three functions return a list with the class set to "BlockwiseData"
, containing the following components:
external |
Copy of the input argument |
data |
If |
fileNames |
Copy of the input argument |
lengths |
A vector of lengths (results of |
attributes |
If input |
metaData |
A copy of the input |
The definition of BlockwiseData
should be considered experimental and may change in
the future.
Peter Langfelder
Other functions on BlockwiseData
:
BD.getData
for retrieving data
BD.actualFileNames
for retrieving file names of files containing data;
BD.nBlocks
for retrieving the number of blocks;
BD.blockLengths
for retrieving block lengths;
BD.getMetaData
for retrieving metadata;
BD.checkAndDeleteFiles
for deleting files of an unneeded object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.