有沒有辦法將ffdf轉換成正常的數據幀? 假設東西足夠小,以適應公羊。從ffdf到正常數據幀
例如:
library(ff)
library(ffbase)
data(trees)
Girth <- ff(trees$Girth)
Height <- ff(trees$Height)
Volume <- ff(trees$Volume)
aktiv <- ff(as.factor(sample(0:1,31,replace=T)))
#Create data frame with some added parameters.
data <- ffdf(Girth=Girth,Height=Height,Volume=Volume,aktiv=aktiv)
rm(Girth,Height,Volume,trees,aktiv)
aktiv <- subset.ffdf(data, data$aktiv== "1")
,然後轉換到活躍的數據幀,並保存RDATA (可悲的是等待輸出不想學習如何與FF包工作的人,所以我有沒有的choise)
感謝
你從哪裏得到的'subset.ffdf'功能?它似乎不在'ff'包中。 – 2013-02-14 12:49:50
你嘗試過'as.data.frame(aktiv)'嗎? – Arun 2013-02-14 12:52:54
參見http://r.789695.n4.nabble.com/how-to-work-with-big-matrices-and-the-ff-package-td1838571.html – 2013-02-14 12:55:37