[R-SIG-Finance] removing repeating values from xts series

Ulrich Staudinger ustaudinger at gmail.com
Wed Sep 15 11:33:17 CEST 2010


I think diff and a logical operation on all four colums would help.
I hoped I would find a ready function for ...
Thanks ...

On Wed, Sep 15, 2010 at 9:46 AM, Ulrich Staudinger
<ustaudinger at gmail.com> wrote:
> I want to compare
>
> y(t) with y(t-1)
> where
> t = 2... length(y)
> y is an xts timeseries
>
>
>
> On Wed, Sep 15, 2010 at 9:33 AM, Patrick Burns <patrick at burns-stat.com> wrote:
>> So you want to compare
>>
>> y[-1,]
>>
>> with
>>
>> y[-nrow(y),]
>>
>> I think.  And save the rows
>> that aren't all equal.  Yes?
>>
>
>
>
>
> --
> Ulrich Staudinger
> activequant.org
>



-- 
Ulrich Staudinger
ustaudinger at activequant.org
http://www.activequant.org



More information about the R-SIG-Finance mailing list