rkevinburton at charter.net
2009-Jul-15 13:53 UTC
[R] Simple cat statement - output truncated
I have a statement: cat("myforecast ETS(", paste(object$components[1], object$components[2], object$components[3], object$components[4], sep = ","), ") ", n, "\n") That generates: cast ETS( A,N,N,FALSE ) 3 Anyone guess as to why the first 5 letters are truncated/missing? Kevin
On 7/15/2009 9:53 AM, rkevinburton at charter.net wrote:> I have a statement: > > cat("myforecast ETS(", paste(object$components[1], object$components[2], object$components[3], object$components[4], sep = ","), ") ", n, "\n") > > That generates: > > cast ETS( A,N,N,FALSE ) 3 > > Anyone guess as to why the first 5 letters are truncated/missing?You are probably being punished for posting non-reproducible code*. When I try a reproducible version of the line above, things look fine: > cat("myforecast ETS(", paste("A","N","N",FALSE, sep = ","), ") ", 3, "\n") myforecast ETS( A,N,N,FALSE ) 3 Duncan Murdoch * R has a new predictive punishment module. It punishes you for things it knows you will do later.