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, ...)

Arguments

path

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

metadata

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

...

Further arguments, ignored.

Value

The vector described by info.

See also

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

Author

Aaron Lun

Examples

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