R 데이터 분석
# MERGE 연습
YONG_X
2015. 6. 26. 10:46
# MERGE 연습
rcrashes3 <- merge(crashes, roads, by="Road", all = TRUE)
nrow(rcrashes3)
rcrashes4 <- merge(crashes, roads, by="Road")
nrow(rcrashes4)
roads1 <- roads
names(roads1)[1] <- "roadname"
rcrashes5 <- merge(crashes, roads1, by.x = "Road", by.y = "roadname")