[Rd] Use logical expresion on ff object

From: Krystian Radlak <radler12_at_op.pl>
Date: Thu, 18 Aug 2011 02:09:59 -0700 (PDT)


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.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 18 Aug 2011 - 09:11:49 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 18 Aug 2011 - 14:00:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive