edwindj / ffbase

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

Allow %in% right hand side to be a regular vector #48

Closed schuemie closed 8 years ago

schuemie commented 8 years ago

Currently, when using the %in% operator, the right hand side needs to be an ff object. Would it be possible to allow a normal vector as well?

x <- ff::as.ff(1:10)

# This works
x %in% ff::as.ff(c(1,2,3))

# This doesn't work, but would be nice if it did
x %in% c(1,2,3)
schuemie commented 8 years ago

Thanks! That seems to work (and doesn't break any of my existing code).