[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:

data(iris)

library(ffbase)
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
Christian



> R.Version()



$platform

[1] "i386-w64-mingw32"



$arch

[1] "i386"



$os

[1] "mingw32"



$system

[1] "i386, mingw32"



$status

[1] ""



$major

[1] "3"



$minor

[1] "1.1"



$year

[1] "2014"



$month

[1] "07"



$day

[1] "10"



$`svn rev`

[1] "66115"



$language

[1] "R"



$version.string

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



$nickname

[1] "Sock it to Me"



> sessionInfo()



R version 3.1.1 (2014-07-10)

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



locale:

[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