/DSSG_R_tutorial

Introduction to R packages that will be useful for Data Science for Social Good projects

Useful R Packages, DSSG 2014

Introduction

Introduction to R packages that will be useful for Data Science for Social Good projects

The Software

  1. R: This is the software that handles data manipulation, analysis, and visualization. Download a copy here.
  2. RStudio: This is an integrated development environment (that is, it brings the source code, output screen, debugging tools, etc. together). It provides an attractive, manipulable, easy-to-use interface to R. Download a copy here.

Load Data

R likes CSVs and tab-delimited files, but some of your partners will share their data in other formats. R has many packages to read other data formats. I provide examples for several in the code:

xlsx

Manipulate Data

Missing Data

  • Amelia II

dplyr

Visualizing Data

ggplot2

Two main functions:

  1. qplot(): quick plots
  2. ggplot(): control of details

Additional resources: Tables2Graphs

Model Estimation

mlr

Model Validation

cross validation

Reporting

apsrtable knittr

Other

Python wrappers?

License

Copyright (C) 2014 Data Science for Social Good Fellowship at the University of Chicago

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.