| materialize | R Documentation |
Consumes a vectra node (pulling all batches) and stores the result as a
persistent columnar block in memory. Unlike nodes, blocks can be probed
repeatedly via block_lookup() without re-scanning.
materialize(.data)
.data |
A |
A vectra_block object (external pointer to C-level ColumnBlock).
f <- tempfile(fileext = ".vtr")
df <- data.frame(taxonID = 1:3,
canonicalName = c("Quercus robur", "Pinus sylvestris",
"Fagus sylvatica"))
write_vtr(df, f)
blk <- materialize(tbl(f) |> select(taxonID, canonicalName))
hits <- block_lookup(blk, "canonicalName",
c("Quercus robur", "Pinus sylvestris"))
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.