timeSeries - Error in cbind function

Thomas Etheber etheber at gmx.de
Thu Aug 12 09:52:51 CEST 2010


Hello,

hopefully I am sending the following bug-report to the correct mail adress.
I found the following bug, with the cbind function in the timeSeries 
package.
Whenever there is just a single data point in the timeSeries the cbind 
with other timeSeries objects fails.

Regards,
Thomas

 > library(timeSeries)
 > a <- timeSeries(1, as.Date(1, origin="2010-01-01") )
 > a
GMT
            TS.1
2010-01-02    1
 > b <- timeSeries( 2:3, as.Date(1:2, origin="2010-01-01")  )
 > b
GMT
            TS.1
2010-01-02    2
2010-01-03    3

##################################################
 > cbind(a, b)
Fehler in cbind(deparse.level, ...) : number of rows must match
##################################################

 > d <- timeSeries( 2:10, as.Date(2:10, origin="2010-01-01") )
 > d
GMT
            TS.1
2010-01-03    2
2010-01-04    3
2010-01-05    4
2010-01-06    5
2010-01-07    6
2010-01-08    7
2010-01-09    8
2010-01-10    9
2010-01-11   10

 > cbind(b,d)
GMT
            TS.1.1 TS.1.2
2010-01-02      2     NA
2010-01-03      3      2
2010-01-04     NA      3
2010-01-05     NA      4
2010-01-06     NA      5
2010-01-07     NA      6
2010-01-08     NA      7
2010-01-09     NA      8
2010-01-10     NA      9
2010-01-11     NA     10
 >



More information about the Rmetrics-core mailing list