Or is there any similar function to split the dataframe to trainDF and testDF?
Gábor Malomsoki <gmalomsoki1...@gmail.com> schrieb am Fr., 14. Apr. 2023, 09:45: > > This is the error then: > error in prettyseq(1:ncol(out)) : could not find function "prettyseq" > > > > > Eric Berger <ericjber...@gmail.com> schrieb am Fr., 14. Apr. 2023, 09:06: > >> What happens if you do the following? >> > library(caret) >> > ?caret::createDataPartition >> >> i.e. to confirm that caret is loaded, seek help on this function >> >> >> On Fri, Apr 14, 2023 at 9:56 AM Gábor Malomsoki <gmalomsoki1...@gmail.com> >> wrote: >> >>> Eric, >>> >>> Yes, i know, i am calling the package, but this is not working. >>> I saw a similar question in Stackoverflow, advising install package >>> Rcpp, but this one i am unable to install. >>> >>> Eric Berger <ericjber...@gmail.com> schrieb am Fr., 14. Apr. 2023, >>> 08:47: >>> >>>> You first have to load the package using the library command. >>>> > library(caret) >>>> >>>> Then you can call createDataPartition. e.g. >>>> > data(oil) >>>> > createDataPartition(oilType,2) >>>> >>>> HTH, >>>> Eric >>>> >>>> >>>> On Fri, Apr 14, 2023 at 7:52 AM Gábor Malomsoki < >>>> gmalomsoki1...@gmail.com> wrote: >>>> >>>>> Dear all, >>>>> When i try to use createDataPartition after calling package 'caret', i >>>>> get >>>>> the message: >>>>> "could not find function createDataPartition" >>>>> >>>>> I use: >>>>> R-4.2.3 for Windows >>>>> RStudio-2023.03.0-386 >>>>> >>>>> Do you have any experience with this failure? >>>>> >>>>> Thank you! >>>>> Best regards >>>>> Gabor >>>>> >>>>> [[alternative HTML version deleted]] >>>>> >>>>> ______________________________________________ >>>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>>> PLEASE do read the posting guide >>>>> http://www.R-project.org/posting-guide.html >>>>> and provide commented, minimal, self-contained, reproducible code. >>>>> >>>> [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.