# R as a Research Tool: Introduction to Programming

## Table of Contents

## Course Materials

### R sessions

- 01-introduction.R
- 02-ggplot.R
- 03-data-structures.R
- 04-functions-lists.R
- 04-functions-solutions.R
- 05-lists-apply.R
- 05: Solutions
- 06-control.R
- 07-loops-functions.R

- 08-data-frames.R
- 09-math1.R
- 10-math2.R
- 11-debug.R
- 12-strings.R
- 13-grammar-graphics.R
- 14-grammar-graphics2.R
- 15-shaping-data.R
- 16-tidy.R
- 17-datetime.R
- 18-statistical-models.R
- 19-color.R See also HW08 example solutions
- 20-markup languages: None
- 21-version-control.txt

### Weekly vocabulary

### Homework

- Instructions

Send each assignment via email

- Subject line: Please give your emails a subject line int his form:
`R-research-tool: HW01`

(for homework 1, for example) - File naming: Name each file starting with your last name, underscore, first name, then a hyphen and use the ".R" extension for R scripts, (e.g.,
`Schwilk_Dylan-HW01.R`

). Include a comment header at the top of each file like this:

# Jane Doe # R as a Research Tool # Homework 1 # Due 9/4/18 ###################################

- Wrap your comments at 79 characters and follow the style guide

- Subject line: Please give your emails a subject line int his form:
- Assignments

- Due September 4, HW1: Vectors and Matrices

- Due Sept 11, HW2: Data

- Due Sept 18, HW3: Functions

- Due Sept 25, HW4: Genetic algorithms I

- Due Oct 2, HW5: Genetic algorithms II

- Due Oct 9, HW6: hw06-simple-evolve.R

- Some solutions: HW06 solutions

- Some solutions: HW06 solutions
- Due Oct 16, HW7: hw07-strings.R

Instructions in R script above.

- Due Oct 23, HW8: Data Visualization

- Data cleaning script: hw08-clean-birdd.R
- HW08 example solutions

- Due Oct 30, HW09: HW09: Data exploration and dplyr

- R script for HW09:hw09-dplyr.R
- Some solutions and corrections to my starter script: assignments/hw09-solutions.R

- Due Nov 6, HW10: data exploration

My data cleaning script for the baby names data and the resulting data:

Old Testament names for question 3:

- Due Nov 13, HW11: Reshape data

Data files:

- Due Dec 4, HW12: Independent project

- Due September 4, HW1: Vectors and Matrices

## External resources

### Websites, articles

A working R vocabulary according to Hadley Wickham: http://adv-r.had.co.nz/Vocabulary.html

### Books

- Advanced R (wiki/ebook by Hadley Wickham)
- R for Data Science (creative commons free ebook as well)
- Books in the Springer Use R! series are free from a TTU IP address: http://www.springerlink.com/books/