ABSTRACT

R is a high-level programming language and environment for statistical computing and graphics. For many last years, R has belonged to the most popular programming languages, especially in the machine learning community. The chapter describes some basic concepts of the language so a reader is able to understand and implement the code examples from the rest of the book. The covered topics include installation of R, using RStudio, variables and data types, including vectors, arrays, matrices, factors, lists, and data frames, operators, using and defining functions with the emphasis on their applicability in machine learning, control flow structures (branchings, loops) to specify the sequence of statements to be executed, working with packages to extend the basic R functionality, and basics of graphics (different chart types) in order to visualize results.