INTRODUCTION TO R Commands

INTRODUCTION TO R Commands - INTRODUCTION TO R Commands The...

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

View Full Document Right Arrow Icon
INTRODUCTION TO R Commands The best way to learn R is to use it. In today’s lab you’ll use R using a list of commands given below. By examining the output, you can figure out for yourself what the commands are doing and thus learn something about R. Directions: 1. Start R using the Windows start menu: start all programs R R 2.3.1 (or whatever version is currently installed on your machine). 2. Type in each command shown below in the commands window and examine the results. For example, type x =2 Hit return, then type: x 3. Some hints: o After typing a few lines of code, try using your up arrow key to see that it will go up to a previous line so that you can re-execute code from a previous line. This is especially useful if you make a typographical error and need to fix it. o If you hit return and get a “+” prompt instead of a “>” prompt, that means continue the line. The most common error is to forget a parenthesis “)” or a quotation mark. Either fix the problem (add the forgotten parenthesis) or
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 06/16/2009 for the course STAT 540 taught by Professor Staff during the Spring '08 term at Colorado State.

Page1 / 3

INTRODUCTION TO R Commands - INTRODUCTION TO R Commands The...

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