| as_mmap | R Documentation |
Generic for converting neuroimaging vectors to a memory-mapped
MappedNeuroVec on disk (when possible).
Methods for the as_mmap generic, which convert various
neuroimaging vector types to a MappedNeuroVec backed
by an on-disk NIfTI file.
as_mmap(x, file = NULL, ...)
## S4 method for signature 'MappedNeuroVec'
as_mmap(x, file = NULL, ...)
## S4 method for signature 'FileBackedNeuroVec'
as_mmap(x, file = NULL, ...)
## S4 method for signature 'NeuroVec'
as_mmap(x, file = NULL, data_type = "FLOAT", overwrite = FALSE, ...)
## S4 method for signature 'SparseNeuroVec'
as_mmap(x, file = NULL, data_type = "FLOAT", overwrite = FALSE, ...)
x |
A neuroimaging vector ( |
file |
Optional output file name. If |
... |
Additional arguments passed to methods (e.g. |
data_type |
Character string specifying the output data type for the NIfTI file. Should be one of: "BINARY", "UBYTE", "SHORT", "INT", "FLOAT", "DOUBLE". Default is "FLOAT". |
overwrite |
Logical; if |
A MappedNeuroVec (or x itself if already
memory-mapped).
A MappedNeuroVec (or x itself if it is
already memory-mapped).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.