Machine Learning with R
Jason Bell · Machine Learning · 2014
R is a programming language, and basically command-line driven. The current version of R comes in two separate download types: one for users running Snow Leopard and the other for Mavericks. When you run R, you are presented with the basic R shell. The R-Studio project is a commercial integrated development environment (IDE) for R. To run through the R basics, the chapter uses the standard R development environment. The command-line prompt is a simple greater than sign (>). Unlike Java, Scala, or Python, R's syntax is a little unforgiving, but after a few sessions it becomes more natural. The chapter also presents an example of simple linear regression in R. Lists of data are held in arrays, called vectors in R, and are defined with the c() function. Like the power of the Weka workbench can be accessed from a Java program, so too can R code.