Download R

R commands and functions:

R commands and functions:

- # - comments out code
- runif(n) - generates n draws from standard uniform distribution
- round(x) - rounds x to the nearest integer
- sum(v) - sums elements of vector v
- mean(v) - averages elements of vector v
- v [ i : j ] - looks at elements from vector v indexed from i to j