Data Structures

Lecture: LearnRDataStructures2014

Lab: R Data Structures

This week’s lecture is about data structures – R’s system for handling data. The system is more flexible than those found in other languages (including the ability to define your own structures).

Most analyses involve three main structures – atoms, vectors, and data frames. We will cover these in the lecture and lab.

Code Examples

Example code from last year (roughly in order of complexity):

Atoms, the basic data unit.

Vectors, ordered lists of values.

Data Frames, basically data sets.

Fall 2014 Topics & Schedule

Check out the fall 2014 topics and schedule here

First Class

Lecture notes: LearnR-Lecture1-Fall2014

Lab Handout: Lab1

The first session for fall 2014 will be held at 10:30-11:30 on September 5th in McGavran-Greenberg 1305.

To prepare:

1. If possible, try installing R and Rstudio on your own before class (it’s easy). We will help resolve any installation issues during the lab.

R installer link .

2. RStudio is a good add-on interface for new users (particularly SAS users). The free version has everything you’ll need. Make sure to install R first.

RStudio installer link

3. Print out page 1 of this helpful cheat sheet to bring to class:

Cheat sheet