-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit.Rmd
53 lines (39 loc) · 1.65 KB
/
submit.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "Submition"
author: "Rodolfo Viana"
date: "05-09-2015"
output: html_document
---
Please mail your submissions to [email protected]. Submissions should have the output file and the code file.
```{r}
#Train <- read.csv("~/Projetos/Hackathon3.x/data/Train.csv")
Test <- read.csv("~/Projetos/Hackathon3.x/data/Test.csv")
drf150.30 <- read.table("~/Projetos/Hackathon3.x/gbm-100-5-50", header=TRUE, quote="\"")
id <- Test[1]
drf150.30 <- cbind(id, drf150.30)
colnames(drf150.30) <- c("ID","Disbursed")
write.csv(drf150.30, file = "~/Projetos/Hackathon3.x/gbm-100-5-50.csv", row.names = FALSE)
```
You can also embed plots, for example:
```{r, echo=FALSE}
gbm <- read.table("~/Projetos/Hackathon3.x/gbm25-5-10f")
drf <- read.table("~/Projetos/Hackathon3.x/drf150-30-11")
gbm2 <- read.table("~/Projetos/Hackathon3.x/gbm25-5-10f-4")
drf2 <- read.table("~/Projetos/Hackathon3.x/drf150-30")
deep <- read.table("~/Projetos/Hackathon3.x/gbm-25-5-100f")
x <- drf150.30[2]
drf150.30 <- cbind(gbm, deep)
drf150.30 <- cbind(x, drf150.30)
colnames(drf150.30) <- c("A","B")
drf150.30$A <- as.numeric(as.character(drf150.30$A))
drf150.30$B <- as.numeric(as.character(drf150.30$B))
drf150.30$C <- as.numeric(as.character(drf150.30$C))
drf150.30$D <- as.numeric(as.character(drf150.30$D))
drf150.30$F <- as.numeric(as.character(drf150.30$F))
drf150.30$G <- as.numeric(as.character(drf150.30$G))
drf150.30 = drf150.30[-1,]
drf150.30$G <- drf150.30$A + drf150.30$B
drf150.30 <- cbind(id, drf150.30$G)
drf150.30$Disbursed <- drf150.30$Disbursed / 4
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.