Read a DFrame from its on-disk representation.
This is usually not directly called by users, but is instead called by dispatch in readObject
.
readDataFrame(path, metadata, ...)
String containing a path to the directory, itself created with saveObject
method for DFrames.
Named list containing metadata for the object, see readObjectFile
for details.
Further arguments, passed to altLoadObject
for complex nested columns.
The DFrame represented by path
.
"saveObject,DataFrame-method"
, for the staging method.
library(S4Vectors)
df <- DataFrame(A=1:10, B=LETTERS[1:10])
tmp <- tempfile()
saveObject(df, tmp)
readObject(tmp)
#> DataFrame with 10 rows and 2 columns
#> A B
#> <integer> <character>
#> 1 1 A
#> 2 2 B
#> 3 3 C
#> 4 4 D
#> 5 5 E
#> 6 6 F
#> 7 7 G
#> 8 8 H
#> 9 9 I
#> 10 10 J