Read a DataFrameFactor from its on-disk representation. This is usually not directly called by users, but is instead called by dispatch in readObject.

readDataFrameFactor(path, metadata, ...)

Arguments

path

String containing a path to a directory, itself created with the saveObject method for DataFrameFactors.

metadata

Named list containing metadata for the object, see readObjectFile for details.

...

Further arguments to pass to internal altSaveObject calls.

Value

A DataFrameFactor represented by path.

See also

"saveObject,DataFrameFactor-method", for the staging method.

Author

Aaron Lun

Examples

library(S4Vectors)
df <- DataFrame(X=LETTERS[1:5], Y=1:5)
out <- DataFrameFactor(df[sample(5, 100, replace=TRUE),,drop=FALSE])

tmp <- tempfile()
saveObject(out, tmp)
readObject(tmp)
#> DataFrameFactor object of length 100 with 0 metadata columns
#> Levels: DFrame object with 5 rows
#> colnames(2): X Y