rocking with r

18
Rocking with R Andrea Hutson, Agile Analytics December 14, 2012

Upload: andrea-hutson

Post on 10-May-2015

1.332 views

Category:

Self Improvement


0 download

DESCRIPTION

An very quick introduction to R, designed to get you Rocking and Rolling - and USING R for the first time.

TRANSCRIPT

Page 1: Rocking with R

Rocking with R

Andrea Hutson, Agile

Analytics

December 14, 2012

Page 2: Rocking with R

R Rocks!Four Reasons you should dump SPSS for R.

1.It’s FREE

2.It’s open source.

3.You can run it on any machine, including Windows, Mac, Linux – even your iPad*

4.Stay on the cutting edge: new packages added constantly.

Page 3: Rocking with R

Goal of this presentation

To get you up and running in R, so you can compare it to your current stats program.

Page 4: Rocking with R

Com

mon

Proble

m:

I don’t have time to learn R.”

Page 5: Rocking with R

Got one to two hours?

http://tryr.codeschool.com/

Get your feet wet with Try R

Page 6: Rocking with R

Got one to two hours?

http://tryr.codeschool.com/

Get your feet wet with Try R

This is a fun, pirate- themed

introduction to R that requires no programming experience or background in

statistics.

Page 7: Rocking with R

Got one to two hours?

http://tryr.codeschool.com/

Get your feet wet with Try R

(Code school has other great courses too, although most

are aimed at serious coders)

Page 8: Rocking with R

http://cran.r-project.org/doc/manuals/R-intro.html

Less fun, but more in depth

Page 9: Rocking with R

http://cran.r-project.org/doc/manuals/R-intro.html

Less fun, but more in depth

This tutorial has been around for many years. It’s

a great option for exploring R.

Page 10: Rocking with R

Com

mon

Proble

m: R is too complicated. I

want a graphical interface like SPSS or SAS.”

Page 11: Rocking with R

R has a Graphical User Interface: R Commander (RCmdr)

Looks similar to SPSS to me!

Page 12: Rocking with R

Go to http://www.r-project.org/ and follow the

instructions…

First time opening R, your window will look like this:

Installing R

Page 13: Rocking with R

Then, just go to: Packages -> Install

Package(s)

Installing R Commander

Page 14: Rocking with R

Choose a mirror (I don’t think it matters, but I always choose USA – TX)

Installing R Commander

Page 15: Rocking with R

Choose RCmdr, and click “OK”

-----meanwhile, note all of the free

packages you can download later….

Installing R Commander

Page 16: Rocking with R

Go to “Packages” again, but this time, choose “Load Package”, and Choose “RCmdr”

Using R Commander

Page 17: Rocking with R

Import is under Data -> Import Data

You can upload plain text, dat, and even EXCEL files.

Now, play with the commands… they’re not identical to SPSS/SAS, but similar.

Next, import your data

Page 18: Rocking with R

Ask me: Feel free to e-mail [email protected]

Go to http://www.talkstats.com

Search under: http://www.rseek.org/

The awesome electric guitar photo is courtesy of Feliciano Guimares http://www.fotopedia.com/users/80n3pj2502nc9, used with Creative Commons License

Questions?