Histograms - Class Worksheet: Chapter One Stat 3022 Jan 21,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Class Worksheet: Chapter One Stat 3022 – Jan 21, 2010 These examples and lab script are good sources of templates for your homework and take home exams. You can enter commands by typing them directly on the command line in the R console and then pressing enter to execute the command. Alternatively, you can open a script file (or R document) in the R Editor. You execute commands in the R editor window (from the R script or document you’ve created) by using ctrl+r on a windows machine or apple+enter on a mac. I like to use the tile command under Windows. Note that # is read by R as a nonexecutable comment. Putting # at the beginning of a line allows you to include comments in your R documents. 1 Histograms 1.1 Load and Check Data The data sets for this worksheet are found at http://www.stat.umn.edu/ llendway/datasets. The easiest way to load data is to use the read.table() function. (Use help(read.table) for more details.) ## You must be connected to the internet for this command to work. >data<-read.table("http://www.stat.umn.edu/~llendway/datasets/ta01_011.txt",header=T)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/24/2010 for the course STAT 3022 taught by Professor Staff during the Spring '08 term at Minnesota.

Page1 / 5

Histograms - Class Worksheet: Chapter One Stat 3022 Jan 21,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online