Console. Coming soon.
Data frame. For our purposes, data frames are just R’s term for data set or data table. Data frames are made up of columns (variables) and rows (observations). In R, all columns of a data frame must have the same length.
Functions. Coming soon.
Arguments: Arguments always go inside the parentheses of a function and give the function the information it needs to give us the result we want.
Pass: In programming lingo, you pass a value to a function argument. For example, in the funtion call
seq(from = 2, to = 100, by = 2)we could say that we passed a value of 2 to the
fromargument, we passed a value of 100 to the
toargument, and we passed a value of 2 to the
Returns: Instead of saying, “the
seq()function gives us a sequence of numbers…” we could say, “the
seq()function returns us a sequence of numbers…” In programming lingo, functions return one or more results.
Global environment. Coming soon.
Objects. Coming soon.
R. R is an integrated suite of software facilities for data manipulation, calculation and graphical display. R is very much a vehicle for newly developing methods of interactive data analysis. It has developed rapidly and has been extended by a large collection of packages. However, most programs written in R are essentially ephemeral, written for a single piece of data analysis.16
R markdown documents. R markdown documents are text files that can be used to clean and analyze your data interactively as well as share your final results in many different formats (e.g., Microsoft Word, PDF, and even websites). R markdown documents weave together R code, narrative text, and multimedia content together into a polished final product.17
RStudio. RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management. RStudio is available in open source and commercial editions and runs on the desktop (Windows, Mac, and Linux) or in a browser connected to RStudio Server or RStudio Server Pro (Debian/Ubuntu, Red Hat/CentOS, and SUSE Linux).18