provides low-level hybrid array loading for 'FST' file; used internally
Methods
Method close()
close the connection
Examples
library(ieegio)
# Data to save, 8 MB
x <- matrix(rnorm(1000000), ncol = 100)
# Save to local disk
f <- tempfile()
io_write_fst(as.data.frame(x), con = f)
# Load via LazyFST
dat <- LazyFST$new(file_path = f, dims = c(10000, 100))
# dat < 1 MB
# Check whether the data is identical
range(dat[] - x)
#> [1] 0 0
system.time(dat[,1])
#> user system elapsed
#> 0.015 0.000 0.015
system.time(dat[1:100,])
#> user system elapsed
#> 0.013 0.002 0.005