官术网_书友最值得收藏!

Installing the environment

In the examples, we'll use Rattle and Qlik Sense Desktop, but, as we've explained, Rattle is an R package and we need to install R too. We will follow these steps:

  1. Download and install R.
  2. Download and install Rattle.
  3. Download and install Qlik Sense Desktop.

Downloading and installing R

These steps must be followed for installing R:

  1. Go to the homepage of R Project for Statistical Computing at www.r-project.org.
  2. In the navigation bar, click on Comprehensive R Archive Network (CRAN) and you will be redirected to a list of CRAN mirrors. Choose a download mirror that is the closest to your geographic location, as shown here:
  3. You will reach a different page; choose Download R for Windows, and in the following page click on install R for the first time.
  4. Finally, you will reach the download page. As of writing this book, the latest version for Windows was 3.1.2. Click on Download R 3.1.2 for Windows to download the installation program, as shown in this screenshot:
  5. Run the installation program, R-3.1.2-win.exe, to start the process. Depending on the level of security of your system, it will ask you for permission to execute the program and to make modifications on your system. You have to allow this to start the process.
  6. In the next step, you have to choose a language; choose English. For the rest of the installation process, leave the default options.
  7. When the installation process finishes, you will have two new icons on your desktop—R i386 3.1.2 and R x64 3.1.2; use the first one if you are using a 32-bit computer and the second one if you are using a 64-bit computer:

Starting the R Console to test your R installation

The R Console is a window used to interact with R language; you can type commands and functions here, and you will see the results in the same window. We will not focus on R, so we'll only learn the commands needed to work with Rattle.

The following steps are needed to start and close R Console:

  1. Double-click the R icon to start the R Console.
  2. To exit the R Console, type q() and press Enter, as shown here:
主站蜘蛛池模板: 郴州市| 兴义市| 无棣县| 大名县| 廉江市| 平潭县| 永吉县| 屏边| 乐至县| 金山区| 越西县| 遂川县| 垣曲县| 仪陇县| 安国市| 凭祥市| 宝清县| 九龙城区| 苏尼特左旗| 赤壁市| 灵山县| 太原市| 潍坊市| 芜湖市| 通化县| 阳信县| 崇义县| 大余县| 河曲县| 碌曲县| 枝江市| 江永县| 嘉兴市| 阿克陶县| 马尔康县| 宁国市| 天峻县| 沈丘县| 洛浦县| 黄梅县| 桦南县|