Differences between revisions 1 and 2
Revision 1 as of 2008-05-19 21:47:46
Size: 777
Editor: colossus
Comment:
Revision 2 as of 2008-05-20 17:30:00
Size: 1985
Editor: colossus
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
== Session 0: Basics == = Session 0: Basics =
Line 11: Line 11:
=== Reading === == Reading ==
Line 15: Line 15:

== Assignments ==
 * Make sure you have the latest version of R (version 2.7) installed on a laptop that you can use during class.

== Topics ==
=== Interacting with R and R files ===
 * Using a command line
       command history, continuation lines, stopping execution
       defining variables
       calling functions
 * Using the R workspace
       {{{ls(), rm(), setwd(), getwd()}}}
 * Using an R script file
 * Saving R objects
       {{{save(), save.image()}}}

=== Getting help ===
 * Function-specific help
       {{{?(), help()}}}
 * Searching the help
       {{{apropos(), help.search(), RSiteSearch()}}}

=== Loading data ===
 * general purpose functions
       {{{scan()}}}
 * specific formats
       {{{read.csv(), read.delim(), read.stata()}}}

=== General data structures ===
 * vectors / arrays
       {{{c()}}}
 * matrices
       {{{cbind(), rbind(), table()}}}
 * lists
       {{{list(), unlist()}}}
 * data frames
       {{{data.frame()}}}
 * general structure manipulation and interaction
       {{{[], [[]], $, subset(), str(), cut(), repr()}}}

=== Basic descriptive statistics ===
 * summary stats
       {{{mean(), sd(), var(), quantile()}}}

Session 0: Basics

Understanding of this material will be assumed throughout the course. Please read these introductory materials and make sure you understand them before beginning the readings for the first session.

If there is sufficient interest, a short primer on using R will be offered during the first week of the course (somewhere between May 26 and May 30). If you're interested in this, or if you have requests on what to cover during the primer, please write to AustinFrank.

Reading

Baa08

Chapter 1 (pp. 1-20)

Intro to R.

G&H07

Chapter 2 (pp. 13-26)

Intro to probability theory.

Dal04

???

???

Assignments

  • Make sure you have the latest version of R (version 2.7) installed on a laptop that you can use during class.

Topics

Interacting with R and R files

  • Using a command line
    • command history, continuation lines, stopping execution defining variables calling functions
  • Using the R workspace
    • ls(), rm(), setwd(), getwd()

  • Using an R script file
  • Saving R objects
    • save(), save.image()

Getting help

  • Function-specific help
    • ?(), help()

  • Searching the help
    • apropos(), help.search(), RSiteSearch()

Loading data

  • general purpose functions
    • scan()

  • specific formats
    • read.csv(), read.delim(), read.stata()

General data structures

  • vectors / arrays
    • c()

  • matrices
    • cbind(), rbind(), table()

  • lists
    • list(), unlist()

  • data frames
    • data.frame()

  • general structure manipulation and interaction
    • [], [[]], $, subset(), str(), cut(), repr()

Basic descriptive statistics

  • summary stats
    • mean(), sd(), var(), quantile()

HLPMiniCourseSession0 (last edited 2008-11-09 04:14:14 by cpe-69-207-169-204)

MoinMoin Appliance - Powered by TurnKey Linux