In this video we talk about:

  1. -R as a calculator

  2. -Using “Up” arrow key to repeat expressions

  3. -Order of operations


EXERCISE and SOLUTIONS!

 
Blog Summary Widget

In this video we talk about:

  1. -Simple mathematic functions (e.g. sine, cosine, etc)

  2. -Review exponential and natural log function.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Repeating the same computation on multiple numbers using vectors.

  2. -Summary statistics on multiple numbers.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Creating vectors

  2. -Creating variables

  3. -Rules for naming variables


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Understanding the structure of functions in R

  2. -How to use functions in R


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Understanding the different variable types in R

  2. -How to work with each and what do they each represent.

  3. -Just like blood, certain types of data works differently with different functions!


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -The structure of data frames, a commonly used object that stores various types of data from the same subject.

  2. -How to explore and access information from data frames.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -How to specify multiple inputs for functions.

  2. -How to read the help files.

  3. -How to see the different default values.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -How to extract different parts of a vector using logical vectors.

  2. -How to extract different rows and columns from a data frame using logical vectors and character vectors.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Logical Operations: working with logical vectors.

  2. -This will be useful for the later video.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -How to extract different parts of a vector using indices, i.e. position of the data in the vector.

  2. -How to extract different rows and columns from a data frame using the same reasoning.


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Simple plotting functions like histograms, boxplots, and scatterplots. 

  2. -How to specify the labels, title, and various arguments for each.

  3. -These functions are really just functions with multiple inputs.  To find other functions, just Google it!


R Code Transcript


EXERCISE and SOLUTIONS!

In this video we talk about:

  1. -Simulations as experiments in a computer using the replicate() function.

  2. -Simplifying some random events to drawing balls from an urn.


R Code Transcript


EXERCISE and SOLUTIONS!

  1. -Last updated 2012, August 30

  2. -Thanks to NSF-VIGRE support (grant number NSF 20063563) and the Instructional Improvement Grant from UC Berkeley for funding this project and Professor Deb Nolan for initiating the project.

  3. -Credits:

  4. -Luis Fernando Campos: recording, exercises/solutions

  5. -Christine Ho: script writing

  6. -Yu-Jay Huoh: video editing, audio editing, script writing

  7. -Wayne Tai Lee: recording, script writing, web layout, exercises/solutions

  8. -Deb Nolan: PI, script writing

  9. -Morgan Thompson: script writing