Stage a DataFrameFactor object, a generalization of the base factor where each level is a row of a DataFrame.
# S4 method for class 'DataFrameFactor'
saveObject(x, path, ...)
A DataFrameFactor object.
String containing the path to a directory in which to save x
.
Further arguments, to pass to internal altSaveObject
calls.
x
is saved to an on-disk representation inside path
.
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)
list.files(tmp, recursive=TRUE)
#> [1] "OBJECT" "_environment.json"
#> [3] "contents.h5" "levels/OBJECT"
#> [5] "levels/basic_columns.h5"