Re: [R] What does this say? Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument

2013-05-26 Thread Bert Gunter
Mike: On Sat, May 25, 2013 at 7:24 PM, C W wrote: > Thomas, thanks for the cool trick. I always thought browser() was the > only thing existed, apparently not. Which you would have known had you read the docs! See section 9 on Debugging in the R Language Definition Manual -- Bert > > Mike >

Re: [R] What does this say? Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument

2013-05-25 Thread C W
Thomas, thanks for the cool trick. I always thought browser() was the only thing existed, apparently not. Mike On Sat, May 25, 2013 at 9:09 PM, Thomas Stewart wrote: > Mike- > > You can use the traceback function to see where the error is: > >> bob <- matrix(rnorm(100*180), nrow=180) >> yyy <

Re: [R] What does this say? Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument

2013-05-25 Thread Thomas Stewart
Mike- You can use the traceback function to see where the error is: > 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 > traceback() 6: predict.multnet(object, newx, s

[R] What does this say? Error in rep("(Intercept)", nrow(a0)) : invalid 'times' argument

2013-05-25 Thread C W
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