View source: R/delarr-backends.R
| delarr_mem | R Documentation |
Create a delayed matrix from an in-memory matrix
delarr_mem(x)
x |
A numeric or logical matrix, or an array with at least 2 dimensions. |
A delarr referencing the original object.
# Wrap an in-memory matrix
mat <- matrix(1:12, nrow = 3, ncol = 4)
darr <- delarr_mem(mat)
darr
# Apply operations lazily
result <- darr |> d_center(dim = "rows") |> collect()
result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.