Learning R¶
Learning R can be a career long endeavor. The best advise is to use it every chance you get. And do not be afraid to ask questions– R is a very common language and many people can help you.
- Exit R – Type
q()- Get help –
?meanorhelp(mean)
predefined-variables
print(pi)
[1] "..."
[1] 3.141593
Declaring variables.
other-varialbes
print("I am a String")
a <- 1:10
print(a)
print(a>5)
[1] "..."
[1] "I am a String"
[1] 1 2 3 4 5 6 7 8 9 10
[1] FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE
- What does the command
seqdo? - Wha about
?
Resources¶
RQuickReference (pdf)- very handy summary of R functions by Elizabeth SlateRBasics Part I (pdf)- short course on R by R. MontgomerieRBasics Part II (pdf)- short course on R part II- An R primer for introductory statistics