Totally new to R? Not for long.

Have you never used R? Nor programmed at all? The swirl package* will get you on your feet so fast. It teaches you how to use R directly from the R prompt. (* Of course, if you’re entirely new, you don’t know what a package is yet. Don’t worry! It’s sort of like an app — it wraps up a bunch of useful functions into a nice neat package.)

Get started with these instructions — they’ll walk you through installing R, R Studio, and swirl. If you need help, well, that’s what R club is for.

Here’s a snippet of what you’ll see as you run through the swirl tutorial:

| To assign the result of `5 + 7` to a new variable 
| called `x`, you type `x <- 5 + 7`. This can be 
| read as "x gets 5 plus 7." Give it a try now.

> x <- 5 + 7

| You nailed it! Good job!
| You'll notice that R did not print the result
| of 12 this time. When you use the assignment
| operator, R assumes that you don't want to 
| see the result immediately, but rather that
| you intend to use the result for something
| else later on.

 

Comments are closed.