[R-SIG-Finance] Numeric to timeSeries help

Jeffrey Ryan jeff.a.ryan at gmail.com
Mon Mar 26 16:24:43 CEST 2012


?merge.xts is what you need.

It will behave like you'd expect in R - requiring a vector of length ==
nrow of your object, or will be recycled as needed. e.g. cbind(x, NA) will
recycle NA accordingly

HTH
Jeff

On 3/26/12 7:59 AM, "Golam Sakline" <golam.sakline at gmail.com> wrote:

>Hi,
>
>Can someone quickly help me with few lines of code or point me to a site
>that shows how to merge a numeric class object column with time column of
>getSymbol object and plot it in quantmod chartSeries.
>Much appreciated.
>
>Thanks in advance
>
>Riskmaverick
>
>Sent from my iPhone
>_______________________________________________
>R-SIG-Finance at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>-- 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 mailing list