forked from stephlocke/ReproducibleGLM-step1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
executable file
·49 lines (36 loc) · 1016 Bytes
/
README.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://travis-ci.org/stephlocke/ReproducibleGLM-step1)
This is a project configured to allow us to start building reproducible models and associated documentation. This stage in the project contains everything up to sampling.
Bits and pieces in use in this project:
- Packrat
- Git
- Travis-CI
- Makefile
Lets use Titanic data!
- Install PASWR package from CRAN
- Install RSQLite package from CRAN
- Make a titanic db in `data-raw`
```r
library(DBI)
library(RSQLite)
titanicdb<-dbConnect(SQLite(),dbname="data-raw/titanic.sqlite")
```
- Add titanic data to the db
```r
library(PASWR)
dbWriteTable(titanicdb, "titanic", titanic3, overwrite=TRUE)
```
## Data steps
- Get data
- Clean it
- Sample it