[R] Range across a List

From: Ravi S. Shankar <ravis_at_ambaresearch.com>
Date: Thu, 27 Mar 2008 01:58:52 +0530


Hi R,
I have a list
> class(pp2)

[1] "list"  

> length(pp2)

[1] 1244

It is in the below format

      RIC Trade.Date Close.Price Currency.Code Convertion.Rate New.Price
ABCD.SZ   2008/02/29       15.30        CNY          0.1408  2.154240
ABCD.SZ   2008/01/31       15.27        CNY          0.1392  2.125584
ABCD.SZ   2007/12/31       14.88        CNY          0.1371  2.040048
ABCD.SZ   2007/11/30       11.07        CNY          0.1357  1.502199
ABCD.SZ   2007/10/31       10.89        CNY          0.1340  1.459260
ABCD.SZ   2007/09/28       12.77        CNY          0.1334  1.703518

I want to find the range of pp2$New.Price for length(pp2) for each date Any help would be appreciated

Thanks in advance
Ravi

This e-mail may contain confidential and/or privileged i...{{dropped:10}}



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. Received on Wed 26 Mar 2008 - 20:35:48 GMT

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 27 Mar 2008 - 01:30:28 GMT.

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

list of date sections of archive