Page 186 - Data Science Algorithms in a Week
P. 186
9
R Reference
Introduction
R is a programming language with a focus on the statistical computing. For this reason, it is
useful for statistics, data analysis, and data mining. R code is written in files with the suffix
.r and can be executed with the command Rscript.
R Hello World example
A simple example in R prints one line of text.
Input:
source_code/appendix_b_r/example00_hello_world.r
print('Hello World!')
Output:
$ Rscript example00_hello_world.r
[1] "Hello World!"