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, ...)String containing a path to a directory, itself created with the saveObject method for DataFrameFactors.
Named list containing metadata for the object, see readObjectFile for details.
Further arguments to pass to internal altSaveObject calls.
A DataFrameFactor represented by path.
"saveObject,DataFrameFactor-method", for the staging method.
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