Are you running the 32-bit or 64-bit version of R?  The 32-bit version
cannot allocate that much space; on Windows, the maximum contiguous space
that can ever be allocated in a 32-bit process is a little over 1Gbyte, on
Unix it's larger but cannot go over the 32-bit address space limit of
4Gbytes.

Cheers,

- Peter

On Sat, 22 Feb 2020 at 22:43, greg holly <mak.hho...@gmail.com> wrote:

> Dear R-Help members;
>
> I have the following error messages when I would like to create
> training and testing data for Random Forest.
>
> Your help is highly appreciated.
>
> Regards,
> Greg
>
> inTrain <- createDataPartition(a, p = 0.7, list = FALSE)
> Error: cannot allocate vector of size 6.5 Gb
>
>         [[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.

Reply via email to