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.)
(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.
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.