[R] subset ffdf does not accept bit vector anymore (package ffbase)

christian.kamenik at astra.admin.ch christian.kamenik at astra.admin.ch
Thu Sep 25 11:45:56 CEST 2014

Hi everyone

Since I updated package 'ffbase', subset.ffdf does not work with bit vectors anymore. Here is a short example:


iris.ffdf <- as.ffdf(iris)
index <- sample(c(FALSE,TRUE), nrow(iris), TRUE)
index.bit <- as.bit(index)

subset(iris.ffdf, subset=index.bit)

results in the error message:
Error in which(eval(e, nl, envir)) : argument to 'which' is not logical

My code was working prior to the update...
and help on subset.ffdf sais:

subset:             an expression, ri, bit or logical ff vector that can be used to index x

Any help would be highly appreciated.

Many thanks

> R.Version()


[1] "i386-w64-mingw32"


[1] "i386"


[1] "mingw32"


[1] "i386, mingw32"


[1] ""


[1] "3"


[1] "1.1"


[1] "2014"


[1] "07"


[1] "10"

$`svn rev`

[1] "66115"


[1] "R"


[1] "R version 3.1.1 (2014-07-10)"


[1] "Sock it to Me"

> sessionInfo()

R version 3.1.1 (2014-07-10)

Platform: i386-w64-mingw32/i386 (32-bit)


[1] LC_COLLATE=German_Switzerland.1252  LC_CTYPE=German_Switzerland.1252    LC_MONETARY=German_Switzerland.1252

[4] LC_NUMERIC=C                        LC_TIME=German_Switzerland.1252

attached base packages:

[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:

[1] stringr_0.6.2 ffbase_0.11.3 ff_2.2-13     bit_1.1-12    track_1.0-15

loaded via a namespace (and not attached):

[1] fastmatch_1.0-4 tools_3.1.1

	[[alternative HTML version deleted]]

More information about the R-help mailing list