One way us to first convert your ff_array
to an array and convert that to a data.frame
:
Mat <- ff(1, vmode="double", dim=c(25, 7303))
as.data.frame(Mat[,])
or first convert your ff_array
to an ffdf
and convert that to an data.frame
:
as.ffdf(Mat)[,]
or
as.data.frame(as.ffdf(Mat))
The last two solutions seem to be much slower than the first. This has probably to do with the large number of columns which slows down as.ffdf
which has to create 7303 files.
There does not seem to be a as.data.frame.ff_array
.