[R-SIG-Finance] Problem setting "FinCenter" with cbind, rbind, merge

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Mon Jul 11 12:46:06 CEST 2011


Hi R timeSeries users:

I try with "zone" option in "timeSeries" function,
but stills to show "GMT", not the Financial Center,
that I try to use:

Dear Davin Winsemius:
I don't understand what are you saying to me:
  
> So why don't you add something meaningful to your code (... that is
not  
> presented in a reproducible manner for testing.)

It is not a "reproducible manner for testing"?

Help me to show it in a accurate way.

Thank you very much..

Reproducible code:

#######################################################
require(timeSeries)

getRmetricsOptions("myFinCenter")
setRmetricsOptions(myFinCenter = "America/Bogota")
getRmetricsOptions("myFinCenter")

fechas <- format(timeCalendar(2010, sample(12, 6)))
datos <- matrix(round(rnorm(6), 3))
t1 <- sort(timeSeries(datos, fechas, units =
"A",zone=getRmetricsOptions("myFinCenter")))
t1
 
fechas <- format(timeCalendar(2010, sample(12, 6)))
datos <- matrix(round(rnorm(6), 3))
t2 <- sort(timeSeries(datos, fechas, units =
"B",zone=getRmetricsOptions("myFinCenter")))
t2

merge(t1,t2)

cbind(t1,t2)

rbind(t1,t2)
######################################################



More information about the R-SIG-Finance mailing list