From Script to Package: Writing Reusable Code in R
Introduction R is a very popular programming language and environment for statistical computing and graphics. Many professionals and analysts use R for data analysis, visualization, and statistical modeling. When you first start coding in R, you might work with scripts-small collections of code that perform specific tasks. However, as your code