Skip to content
Prev 270625 / 398498 Next

How to keep the same class?

On Sep 2, 2011, at 3:05 PM, Eduardo M. A. M.Mendes wrote:

            
Ed,

See:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-my-matrices-lose-dimensions_003f

and then use:

  predict(fit10, testX[1, , drop = FALSE])

HTH,

Marc Schwartz