Posts by Pedro Teixeira • 63 points
4 posts
-
2
votes2
answers109
viewsQ: How to add a column
train <- read.csv("train.csv") train$color <- as.numeric(as.factor(train$color)) train.scale <- scale(train[,2:5]) train.scale$color <- train$color ERROR: In Train.Scale$color <-…
rasked Pedro Teixeira 63 -
2
votes0
answers244
viewsQ: Metricas de machine Learning
I would like to know how to evaluate which model is better. For example: I am learning machine Learning using the dataset the Titanic, and I used Tree decisions, Logistic regression and Random…
-
1
votes1
answer99
viewsA: How to combine two dataframes in the correct order using R
I got the answer. I joined the two data frames with a rbind() and then I used a arrange() to sort the way I wanted. Thank you so much for all your help
ranswered Pedro Teixeira 63 -
1
votes1
answer99
viewsQ: How to combine two dataframes in the correct order using R
df <- read.csv('train.csv') train1 <- train[train$variavel3 == 1] train2 <- train[train$variavel3 == 0] fit1 <- rpart(variavel1~variavel2) fit2 <- rpart(variavel1~variavel2) dftest…
rasked Pedro Teixeira 63