Aug22 - R Basics Andrew J. Womack August 22, 2011...

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

View Full Document Right Arrow Icon
R Basics Andrew J. Womack August 22, 2011
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction What R is: I Statistical Scripting Language I Free I Open Source I Flexible I Objects and Methods What R is not: I The fastest computing language I Fool proof I Guaranteed Why we are using R : I Free! I Lots of good user contributed packages I Growing popularity in the statistics community I Small learning curve for use
Background image of page 2
Downloading and Installing To install R: Go to http://www.r-project.org/ or a CRAN (Comprehensive R Archive Network) mirror: http://www.cran.r-project.org/ To install packages: Use the menu or the command install.packages Example: >install.packages("mcsm") To load packages: Use the command library Example: >library(mcsm) Manuals, etc. ? , help() , help.search() Example: >?summary Full manuals for all packages are available on all CRAN mirrors. http://www.rseek.org and the R Reference Card http://cran.r-project.org/doc/contrib/Short-refcard.pdf
Background image of page 3

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

View Full DocumentRight Arrow Icon
Beginnings R can be quit at any time using >q() which will give you the option to save your session. Commenting character: # Strings are contained in " " = or <- are assignment characters and assign the RHS to the LHS > # We begin by storing a scalar > a=4 > # Showing a > print(a) > a<-5 > print(a)
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

Aug22 - R Basics Andrew J. Womack August 22, 2011...

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

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