edwindj / ffbase

Basic (statistical) functionality for R package ff
github.com/edwindj/ffbase/wiki
35 stars 15 forks source link

ffwhich() on ff_matrix #51

Open meowcat opened 8 years ago

meowcat commented 8 years ago

Hi,

I was trying to use ffwhich(), but it doesn't currently work with ff_matrix objects. ff_matrix objects have classes "ff_matrix" "ff_array" "ff" but not ffdf or ff_vector. Are there technical reasons why this couldn't work? I find it really convenient to do e.g. replacement operations on matrix subsets (since in regular R matrices can be accessed just like regular vectors with a single index).

jwijffels commented 8 years ago

no technical reasons, it's just not implemented yet. feel free to contribute. Code for ffwhich in ff_vector and ffdf is https://github.com/edwindj/ffbase/blob/master/pkg/R/ffwhich.R ffwhich.ff_matrix go ahead.