0
Making that code:
library(BETS)
library(TStools)
selic <- BETS.get(4189, from = '2000/01/01',
to= '2016/02/01',freq=12)
seasplot(selic,outplot = 3,trend = F)
Gives this result
Error in if (diff(range(colSums(ynt))) <= .Machine$double.eps^0.5) { :
missing value where TRUE/FALSE needed
If you don’t have Missing values using from January to January, it works. How do I take the Missing values and run?
Where the package comes from
TStools
uppercase? And the functionseasplot
?– Rui Barradas
Hi. Comes from Github http://kourentzes.com/forecasting/2014/04/19/tstools-for-r/
– André Takano
Seasplot comes from Tstools tbm package
– André Takano
Seems to be a bug in the function, I edited the line where gives the error, includes the
na.rm = TRUE
incolSums
. Stayed like this:if (diff(range(colSums(ynt, na.rm = TRUE))) <= .Machine$double.eps ^ 0.5){
. It’s on line 140 of the source.– Rui Barradas