Princeton University Data and Statistical 
Services Princeton University Library

Search DSS





Finding Data Using Data About Us

DSS lab
(Monday-Friday)
Sep 1-
Oct 2
By appt. only
Oct 3-
Dec 16
2-5 pm*, other times by appt.
Dec17-
Feb 4
By appt. only
Feb 6-
May15
1-5 pm*, other times by appt.
May16-
Aug31
By appt. only
Email data@princeton.edu for an appt or questions.
*No appts. necessary during walk-in hrs.

Follow DssData on 
Twitter
See DSS on Facebook

Home Online Help Statistical Packages S-Plus/R

R

S-Plus is an advanced and powerful programming language for data management, analysis and graphics. R is based on Splus, most commands for Splus work as well for R. At Princeton S-Plus for Unix is available on the Arizona Unix server, as well as some other departmental Unix servers. S-Plus for Windows is also installed on the computers in the DSS lab. It is not easy to learn and would generally not be a first choice for students wishing to conduct an analysis. DSS support for R is at the basic level.

Resources to learn R

  • Data analysis examples
  • Unit roots and cointegration
  • Descriptive statistics
  • Subsetting data
  • And more...

The following notes reffer to S-Plus and, in most cases, apply to R as well. These are based on a document by Hugh Louch,
Data and Statistical Services

Introduction to S-Plus

  • Overview
  • S-Plus and Objects
  • Using S-Plus
  • Getting Help

Using S-Plus on Unix

  • Unix Intro
  • Invoking Splus
  • Storing S-Plus Objects

S-Plus Syntax

  • Basics
  • Assignment
  • Types of Objects

Reading in Data

  • SAS Data
  • read.table()
    • Free Format Data
    • Fixed Format Data
    • Delimited Data
  • Inputting Your Own Data

Analysis

  • Referring to Variables
  • Summary Statistics
  • Regression
  • Reading Output

Graphics

  • Output Devices
  • Graphing Commands

Resources at Other Sites

This page was last updated on Jan 20, 2010