[R] $ opetator is invalid for atomic vectors
ru|pb@rr@d@@ @end|ng |rom @@po@pt
Mon Feb 24 14:03:47 CET 2020
If you are using function resamples from package caret, just read its
help page. From ?resamples, section Arguments:
a list of two or more objects of class train, sbf or rfe with a common
set of resampling indices in the control object. For sort.resamples, it
is an object generated by resamples.
Your x argument is not an object of one of those classes. You are
passing the function a list of 2 numeric values, not an object
resembling the examples in that help page.
Hope this helps,
Às 11:35 de 24/02/20, javed khan escreveu:
> I am using genetic algorithm for some optimization problem. I executed it
> with 2 types of data and get results like
> When I combine it with resamples
> Value=resamples (list (GA, GA2))
> It gives me the error
> $ operator is invalid for atomic vectors.
> What should be the issue here?
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help