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

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:
主站蜘蛛池模板: 会宁县| 年辖:市辖区| 鹰潭市| 吴江市| 普兰县| 哈尔滨市| 桦甸市| 大足县| 句容市| 丹凤县| 丰镇市| 荥阳市| 宜宾县| 杭州市| 新邵县| 扶余县| 南宁市| 军事| 丽水市| 福州市| 荔浦县| 黑河市| 蓬溪县| 青川县| 中牟县| 客服| 正安县| 台山市| 诸城市| 方正县| 北安市| 茶陵县| 池州市| 米林县| 洪泽县| 昭觉县| 顺昌县| 酒泉市| 汝阳县| 赫章县| 页游|