[R] data.frame with a column containing an array

2023-05-08 Thread Georg Kindermann
Dear list members, when I create a data.frame containing an array I had expected, that I get a similar result, when subsetting it, like having a matrix in a data.frame. But instead I get only the first element and not all values of the remaining dimensions. Differences are already when creating

Re: [R] RandomForest tuning the parameters

2023-05-08 Thread Eric Berger
Hi, One problem you have is with the command: regr<-randomForest(y~x1+x2, data=X_train, proximity=TRUE) What you need is something like this: X2 <- cbind(X,y) regr<-randomForest(y~x1+x2, data=X2, proximity=TRUE) HTH, Eric On Mon, May 8, 2023 at 11:11 PM varin sacha via R-help wrote: > > Dear

[R] RandomForest tuning the parameters

2023-05-08 Thread varin sacha via R-help
Dear R-experts, Here below a toy example with some error messages, especially at the end of the code (Tuning the parameters). Your help to correct my R code would be highly appreciated. ### #libraries library(lattice) library(ggplot2) library(caret) library(

Re: [R] Huge differences in Ram Consumption with different versions of R on the same scripts

2023-05-08 Thread Eric Berger
Assuming the vignettes are the same in both cases, try going back to the system where it worked and introduce a single change? i.e. a) previous linux system and R 4.2 b) Previous R version and Oracle Linux 8 Repeat the test for a) and b) and if one works fine and the other fails at least that will