Description Usage Arguments Details Examples
Convert to from dense to sparse representation
1 2 3 4 5 6 7 8 9 10 11 12 13 | as.sparse(x, mask, ...)
## S4 method for signature 'DenseBrainVector,LogicalBrainVolume'
as.sparse(x, mask)
## S4 method for signature 'DenseBrainVector,numeric'
as.sparse(x, mask)
## S4 method for signature 'DenseBrainVolume,LogicalBrainVolume'
as.sparse(x, mask)
## S4 method for signature 'DenseBrainVolume,numeric'
as.sparse(x, mask)
|
x |
the object to make sparse, e.g. |
mask |
the elements to retain |
... |
additional arguments |
mask
can be an integer vector of 1D indices or a mask volume of class LogicalBrainVolume
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.