[R] What does this say? Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument
    C W 
    tmrsg11 at gmail.com
       
    Sat May 25 22:14:50 CEST 2013
    
    
  
Dear list,
I am using glmnet.  I have no idea what this error is telling me.
Here's my code,
> bob <- matrix(rnorm(100*180), nrow=180)
> yyy <- rnorm(180)
> fit1 <- cv.glmnet(bob, yyy, family="mgaussian")
Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument
In fact, I peeked inside cv.glmnet() using,
> glmnet:cv.glmnet
Can't even find the error message in the code.  I am clueless at the moment.
Thanks in advance,
Mike
    
    
More information about the R-help
mailing list