Intro to R
David K. Gosser · 2023
Every programming language has similar elements. We need to input data, identify variables, perform calculations, create functions, control program flow, and output data and graphics. The R language is attractive in that it has a full online development environment - RStudio Cloud ( https://www.w3.org/1999/xlink" xlink:href=" https://rstudio.cloud "> https://rstudio.cloud )- and built-in functions for regression analysis, solving equations, and producing graphics. R is increasingly used for those involved in data analysis and statistics, particularly social sciences, bio-statistics, and medicine. References on R tend to emphasize different features of R more suitable for social sciences, data mining, ecology, and medicine. A good reference for scientists using numerical methods is available [ 1 ], and an Analytical Chemistry textbook [ 2 ] that provides examples in R is available. This manual will present the elements of R gradually, as needed, mostly through chemical data examples. This document itself is created with R Markdown ( https://www.w3.org/1999/xlink" xlink:href=" https://bookdown.org/yihui/rmarkdown/ "> https://bookdown.org/yihui/rmarkdown/ ), which integrates a document creation with R code.