Princeton University Library Princeton University Library

Search DSS

Finding Data Analyzing Data Citing data

About Us

DSS lab consultation schedule
Sep 1-Oct 16By Zoom appt. here
Oct 19-Dec 4Virtual Zoom Walk-ins
Dec 7-Jan 31By Zoom appt. here
Feb 1-April 30Virtual Zoom Walk-ins
May 3-Aug 31By appt. here
For quick questions email
*No appts. necessary during walk-in hrs.
Note: the DSS lab is open as long as Firestone is open, no appointments necessary to use the lab computers for your own analysis.

Follow DssData on Twitter
See DSS on Facebook

Home Online Help Statistical Packages S-Plus/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


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


  • Output Devices
  • Graphing Commands

Resources at Other Sites

This page was last updated on Jan 20, 2010