Displaying 2 results from an estimated 2 matches for "jdb33".
Did you mean:
d33
2003 Sep 23
0
Rank and extract data from a series
Here's one way. Suppose your "time series" is in a vector called "x".
top10 <- sort(x, decreasing=TRUE)[1:10]
mean.index <- mean(which(x %in% top10))
HTH,
Andy
> -----Original Message-----
> From: James Brown [mailto:jdb33 at hermes.cam.ac.uk]
> Sent: Tuesday, September 23, 2003 7:51 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Rank and extract data from a series
>
>
>
> I would like to rank a time-series of data, extract the top
> ten data items from this series, determine the cor...
2003 Sep 23
1
AW: Rank and extract data from a series
...(X2)
Hope this helps
Thomas
___________________________________________
James Brown
Cambridge Coastal Research Unit (CCRU)
Department of Geography
University of Cambridge
Downing Place
Cambridge
CB2 3EN, UK
Telephone: +44 (0)1223 339776
Mobile: 07929 817546
Fax: +44 (0)1223 355674
E-mail: jdb33 at cam.ac.uk
E-mail: james_510 at hotmail.com
http://www.geog.cam.ac.uk/ccru/CCRU.html
___________________________________________
On Wed, 10 Sep 2003, Jerome Asselin wrote:
> On September 10, 2003 04:03 pm, Kevin S. Van Horn wrote:
> >
> > Your method looks like a naive reim...