[R] caret: Errors with createGrid for rf (randomForest)

2013-02-12 Thread James Jong
When I try to crate a grid of parameters for training with caret I get various errors: my_grid - createGrid(rf) Error in if (p = len) { : argument is of length zero my_grid - createGrid(rf, 4) Error in if (p = len) { : argument is of

Re: [R] caret: Errors with createGrid for rf (randomForest)

2013-02-12 Thread David Winsemius
On Feb 12, 2013, at 10:53 AM, James Jong wrote: When I try to crate a grid of parameters for training with caret I get various errors: my_grid - createGrid(rf) Error in if (p = len) { : argument is of length zero my_grid -

Re: [R] caret: Errors with createGrid for rf (randomForest)

2013-02-12 Thread James Jong
That was the problem. Thanks David! James On Tue, Feb 12, 2013 at 2:08 PM, David Winsemius dwinsem...@comcast.netwrote: On Feb 12, 2013, at 10:53 AM, James Jong wrote: When I try to crate a grid of parameters for training with caret I get various errors: