[R-SIG-Finance] 'tail' method for its object
Whit Armstrong
armstrong.whit at gmail.com
Mon May 3 01:25:39 CEST 2010
Thanks for reporting this. I'll have a look.
On Sat, May 1, 2010 at 1:45 AM, Kyle Matoba <kmmatoba at stanford.edu> wrote:
> Wanted to raise this in case it wasn't known (its version 1.1.8):
>
>> library(quantmod)
>> getSymbols("A",src="yahoo", return.class="its")
> [1] "A"
>> head(A)
> An object of class “its”
> A.Open A.High A.Low A.Close A.Volume A.Adjusted
> 2007-01-03 34.99 35.48 34.05 34.30 2574600 34.30
> 2007-01-04 34.30 34.60 33.46 34.41 2073700 34.41
> 2007-01-05 34.30 34.40 34.00 34.09 2676600 34.09
> 2007-01-08 33.98 34.08 33.68 33.97 1557200 33.97
> 2007-01-09 34.08 34.32 33.63 34.01 1386200 34.01
> 2007-01-10 34.04 34.04 33.37 33.70 2157400 33.70
> Slot "dates":
> [1] "2007-01-03 PST" "2007-01-04 PST" "2007-01-05 PST" "2007-01-08 PST"
> [5] "2007-01-09 PST" "2007-01-10 PST"
>
>> tail(A)
> Error in x[seq.int(to = xlen, length.out = n)] : subscript out of bounds
>
> Thanks for the good work Whit!
>
> Kyle
>
More information about the R-SIG-Finance
mailing list