-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Including row.names:
df <- data.frame(a=1:3,b=4:6)
rownames(df) <- c("row1","row2","row3")
df
# a b
# row1 1 4
# row2 2 5
# row3 3 6
fst::write_fst(df,"~/tmp/df")
df2 <- fst::read_fst("~/tmp/df")
df2
# a b
# 1 1 4
# 2 2 5
# 3 3 6and class:
df <- data.table(a=1:3,b=4:6)
# [1] "data.table" "data.frame"
fst::write_fst(df,"~/tmp/df")
df2 <- fst::read_fst("~/tmp/df")
class(df2)
# [1] "data.frame"Metadata
Metadata
Assignees
Labels
No labels