>RE::VISION CRM

R 데이터 분석 136

[retail example ] R :: Tree, R, Scoring, cumulative gains chart plotting , AIC oversampling,

tr01 <- read.csv("tb_tr01.csv")sku01 <- read.csv("sku_mast01.csv") tr01$d_date <- as.Date(as.POSIXct(tr01$d_date, origin='1960-01-01',tz="UTC"))tr01$year <- substr(as.character(tr01$d_date),1,4) #========================# Propensity Score 계산 example#---------------- data(mtcars)mtcars$cylh <- ifelse(mtcars$cyl>4,"H","L") mtcars$cylh <- as.factor(mtcars$..

R 데이터 분석 2015.07.11