decision tree classifier R code example Example: decision tree r library(ISLR) data(package="ISLR") carseats<-Carseats