Upload student-merge.R
Browse files- student-merge.R +5 -0
student-merge.R
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
d1=read.table("student-mat.csv",sep=";",header=TRUE)
|
2 |
+
d2=read.table("student-por.csv",sep=";",header=TRUE)
|
3 |
+
|
4 |
+
d3=merge(d1,d2,by=c("school","sex","age","address","famsize","Pstatus","Medu","Fedu","Mjob","Fjob","reason","nursery","internet"))
|
5 |
+
print(nrow(d3)) # 382 students
|