writefstArray()
implementation will only work once fst supports appending directly on/to disk. Fortunately, this is planned for v0.9.0
[,fstArray-method
using something like the below. This can probably be further optimised by digging into the guts of [,DelayedArray-method
when called with a 'linear index'. In fact, this will probably also work for random row accessrows <- sample(nrow(x), 10000)
elements <- DelayedArray:::to_linear_index(list(rows, NULL), dim(x))
system.time(a <- as.matrix(fstarray_no_compression[rows, ]))
system.time(b <- matrix(fstarray_no_compression[elements], ncol = ncol(x),
dimnames = list(NULL, colnames(x))))
all.equal(a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.