Attach a Filebacked Big Matrix
big_attach(rdsfile) big_attachExtdata()
rdsfile | Path to a ".rds" file. |
---|
The FBM object stored in the rdsfile.
# temporary FBM X <- FBM(10, 10)$save() rdsfile <- sub_bk(X$backingfile, ".rds") X2 <- big_attach(rdsfile) all.equal(X[], X2[])#> [1] TRUE