[R-SIG-Finance] na.omit.xts unsupported type error
jeff.a.ryan at gmail.com
Tue May 17 03:06:46 CEST 2011
Yes, currently only logical, integer and reals are supported at the C level. Mostly due to time/demand constraints.
Since changing it, you are the first to mention it - so my suspicion is that it is reasonable. That said, I will add what I can in the C and try an cover remaining cases in R logic around.
I'll also add something in the docs.
Jeffrey Ryan | Founder | jeffrey.ryan at lemnica.com
On May 16, 2011, at 7:02 PM, Joshua Ulrich <josh.m.ulrich at gmail.com> wrote:
> On Mon, May 16, 2011 at 5:59 PM, Worik Stanton <worik.stanton at gmail.com> wrote:
>> I cannot see what I am doing wrong.
>> I have xts
>> return colour
>> 1977-01-05 "0.00657131520848225" "RED"
>> 1977-01-06 "-0.012214299603114" "RED"
>> 1977-01-10 "-0.0104483453737235" "RED"
>> 1977-01-12 "-0.012253432045205" "RED"
>> 1977-01-17 "-0.00435933050375995" "RED"
>> 1977-01-19 "0.00186556754505644" "RED"
>> Error in na.omit.xts(Q.x) : unsupported type
>>  "xts" "zoo"
>> I know there are no NAs in Q.x, but na.omit should still work surely?
> You're not doing anything wrong, but the error tells you exactly
> what's going on. na.omit.xts doesn't currently support character
> Joshua Ulrich | FOSS Trading: www.fosstrading.com
> R-SIG-Finance at r-project.org mailing list
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.
More information about the R-SIG-Finance