Upload your photo. Edit your profile. Introduce yourself in the “sayHi” stream
And feel free to start the conversation going under “prelim-math” while you’re doing your pre-course homework
What to bring (have)
a laptop with R and R-Studio installations (see below)
a working web camera and a quiet space to take the course from
solutions (or attempts) to the exercises (see above Pre-course homework)
a pen and paper to write on
a positive attitude
R, R-Studio, R-packages and Rmd
During the course we will run scripts locally on laptops using R (programming language) and R-Studio (editor). We will write scripts in using R markdown files (.Rmd), a files that include both an easy-to-write plain text that can also contain chunks of embedded R code.
Click on the link corresponding to your operating system
Download the recommended files for your system.
Run the installer or move the downloaded files to suitable place on
Install R Studio
Go to the web page rstudio download the installer corresponding to your operating system. Unpack the installer and install the app on a suitable place on your system.
You should now be able to fire up R-studio and see something like the following:
Note that on some operating systems it will be easier to install and run R and R-studio if you are administrator of your own computer and hence are allowed to install software on your machine. If you do not have these privileges please ask your system administrator to install the latest version of R and R-studio.
By default, R installs a set of packages during installation. R package, is a basic unit of sharable code, that bundles together code, data, documentation and tests. In the course we will be using both default and additional R packages; the latter we need to install. To install a package, we type in console install.packages("package-name")
Try installing packages that we will use for decision trees and artificial neural networks
# install decision trees packagesinstall.packages("rpart")install.packages("rpart.plot")install.packages("randomForest")# install artifical neural network packageinstall.packages("neuralnet")
To use the install package we load them by using library() or require() e.g.
To see packages index page use help() function
Install R packages
To install R packages, open R-Studio and in the console, type