Skip to content
Prev 326429 / 398502 Next

Subset and order

It may be that single and efficient are opposing goals. Two steps
lets you create the subset and then just order each query.
Alternatively, if the data do not change often, create an ordered
version and query that.


David Carlson

----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Noah Silverman
Sent: Friday, July 5, 2013 2:47 PM
To: Rui Barradas
Cc: R-help at r-project.org
Subject: Re: [R] Subset and order

That would work, but is painfully slow.  It forces a new sort of the
data with every query.  I have 200,000 rows and need almost a
hundred queries.

Thanks,

-N


On Jul 5, 2013, at 12:43 PM, Rui Barradas <ruipbarradas at sapo.pt>
wrote:
the same time.
http://www.R-project.org/posting-guide.html
code.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.