[R] Range across a List
Ravi S. Shankar
ravis at ambaresearch.com
Wed Mar 26 21:28:52 CET 2008
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}}
More information about the R-help
mailing list