Hello,
You are trying to index based on a logical ff vector instead of based on a
integer ff vector.
Indexing based logical ff vectors are only allowed since version 0.6 of the
package which is not on CRAN currently yet.
Jan
--
View this message in context:
It doesn't seem possible to index an ff-vector using a logical
ff-vector. You can use subset (also in ffbase) or first convert 'a' to
a normal logical vector:
library(ff)
library(ffbase)
data1 - as.ffdf(data.frame(a = letters[1:10], b=1:10))
data2 - as.ffdf(data.frame(a =
Hello to everyone.
I'm trying to use the %in% to match to vectors in ff format.
a-as.ff(data[,1]) %in% fire$fecha
aff (open) logical length=3653 (3653)
[1][2][3][4][5][6][7][8][3646]
FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE : FALSE
Hi Lucas
I don't know the ff package very well but here is what I found. Maybe
there is a clue in here
z - as.Date(1970-01-01)+1:10
zff - as.ff(z)
z %in% zff
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
#but
z %in% zff[1:length(zff),]
[1] TRUE TRUE TRUE TRUE TRUE
4 matches
Mail list logo