R in Five Minutes

by Karl-Kuno Kunze

Become an insideR within five minutes? Here’s how:

First, open the site r-fiddle.org. Delete demo("graphics")

Now your are ready to enter your first commands. On the right of the ‘>’ enter the following and click ‘Run Code’ on the bottom right. The R Fiddle console should now show the same results as below. R Fiddle Output is preceeded by ##.

Define a vector and print it to the screen with:

Don’t forget to click the button ‘Run Code’ at the bottom right for executing the command.

Now, square the vector with:

And now, let’s go for a plot:

plot of chunk unnamed-chunk-4
The plot should look like the title graphics. The output of R Fiddle should look like the screenshot below. You can see the plot in R Fiddle on the top right.

R_in_funf_Minuten_con

Now, you are an R Wizard. Have fun!