Learn R Programming

bigstatsr (version 1.6.1)

big_attach: Attach a Filebacked Big Matrix

Description

Attach a Filebacked Big Matrix

Usage

big_attach(rdsfile)

big_attachExtdata()

Value

The FBM object stored in the rdsfile.

Arguments

rdsfile

Path to a ".rds" file.

Examples

Run this code
# temporary FBM
X <- FBM(10, 10)$save()

rdsfile <- sub_bk(X$backingfile, ".rds")
X2 <- big_attach(rdsfile)

all.equal(X[], X2[])

Run the code above in your browser using DataLab