From radler12 at op.pl  Thu Aug 18 11:09:59 2011
From: radler12 at op.pl (Krystian Radlak)
Date: Thu, 18 Aug 2011 02:09:59 -0700 (PDT)
Subject: [Rd] Use logical expresion on ff object
Message-ID: <1313658599381-3752127.post@n4.nabble.com>

I want to do operation with ff vector from packages ff like simple operation
in R like this. (I have read data from file)
Example 
a=1:10
b=a[a>5]

how to do this operation with ff packages:
Example :
a=ff(1, length=15*10^7)

I know that I could get logical vector like this:

k=bit(15*10^7) # from bit packages
a=ff(-1,15*10^7)
system.time(
		for (i in chunk(a)){ k[i]<- a[i]<1}
)

Any suggestions?

Best,
Krystian



--
View this message in context: http://r.789695.n4.nabble.com/Use-logical-expresion-on-ff-object-tp3752127p3752127.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Use logical expresion on ff object
Krystian Radlak