Read a base R factor from its on-disk representation.
This is usually not directly called by users, but is instead called by dispatch in readObject
.
readBaseFactor(path, metadata, ...)
String containing a path to a directory, itself created with the saveObject
method for factors.
Named list containing metadata for the object, see readObjectFile
for details.
Further arguments, ignored.
The vector described by info
.
"saveObject,factor-method"
, for the staging method.
tmp <- tempfile()
saveObject(factor(letters[1:10], letters), tmp)
readObject(tmp)
#> [1] a b c d e f g h i j
#> Levels: a b c d e f g h i j k l m n o p q r s t u v w x y z