R ![]() |
http://www.r-project.org |
Description: | R is GNU's implementation of the programming-language S. It is used mainly for statistical purposes. |
Hello World | Michael Neumann |
# Hello World in R print("Hello World") |
Prints "Hello World" onto the
screen. |
Squares (1) | Michael Neumann |
for (i in 1:10) print(i*i) |
Outputs the squares from 1 to
10. |
Squares (2) | Michael Neumann |
r <- 1:10 # assignment print(r*r) |
Outputs the squares from 1 to
10. |