STOR 054 “Adventures in Statistics”

.

.

Swirl is a useful R package that lets you learn R interactively right in the R Console of R-Studio. As you work through the lessons, you will experience lots of positive affirmations as well. (I am not responsible for these affirmations.)

1. Open R-studio and either type or copy-paste the following script to load Swirl into R:

(If you are experienced with R, skip whatever you like.)

#Install swirl package (only need to do this once)
install.packages('swirl')

#Load swirl library
library(swirl)

#Install these three swirl courses
install_from_swirl("R_Programming")
install_from_swirl("Getting_and_Cleaning_Data")
install_from_swirl("Exploratory_Data_Analysis")

#Begin swirl
swirl()

R will take a few minutes to load all of the packages, after which you can put in the name you would like to be called. I chose “Captain”, but it doesn’t matter.

2. Choose R Programming once you get to the 4-item menu.

I recommend the lessons, roughly in the order order presented. You may skip lesson 3 (files) at this time as it is painful.

3. After completing lessons 1, 2, 4

Give yourself a pat on your back. Then if you are hungry for more or have computer science experience, go ahead and continue through the modules.