Last active
November 14, 2017 09:40
-
-
Save verajosemanuel/5d0a0dafab615bada37fca4c4fd1a6dc to your computer and use it in GitHub Desktop.
#FFTrees #packages #R #ML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df <- read.csv("data.csv", sep = ";", stringsAsFactors = FALSE) | |
library("FFTrees") | |
## Recoding | |
pdf$recoded <- pdf$original | |
pdf$recoded[pdf$TIPO == "no"] <- "0" | |
pdf$recoded[pdf$TIPO == "yes"] <- "1" | |
pdf$recoded <- as.numeric(pdf$recoded) | |
## just some columns to use | |
dfclean <- df[,c("column1","column2","column3","column4","column5","recoded")] | |
fft <- FFTrees(formula = recoded ~. , data = dfclean) | |
plot(fft, decision.names = c("no", "yes")) | |
fft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment