[R] Package Caret

Eric Berger er|cjberger @end|ng |rom gm@||@com
Fri Apr 14 10:44:01 CEST 2023


prettyseq() is in the seqinr package. That seems to usher in a lot of other
issues.

How about caTools::sample.split() ?   (I have never used it, I just learned
about it from a search)

https://rdrr.io/cran/caTools/src/R/sample.split.R

Good luck,
Eric


On Fri, Apr 14, 2023 at 10:50 AM Gábor Malomsoki <gmalomsoki1980 using gmail.com>
wrote:

> Or is there any similar function to split the dataframe to trainDF and
> testDF?
>
> Gábor Malomsoki <gmalomsoki1980 using 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 <ericjberger using 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 <
>>> gmalomsoki1980 using 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 <ericjberger using 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 <
>>>>> gmalomsoki1980 using 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 using 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]]



More information about the R-help mailing list