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

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:
主站蜘蛛池模板: 定远县| 尤溪县| 海林市| 溧阳市| 东安县| 关岭| 松溪县| 当雄县| 无锡市| 汝州市| 合江县| 临潭县| 康平县| 汤阴县| 云林县| 巴彦淖尔市| 遂宁市| 江津市| 凭祥市| 云浮市| 孝昌县| 巴东县| 福州市| 逊克县| 吕梁市| 灵寿县| 华宁县| 工布江达县| 邢台市| 黔西| 兴文县| 开封县| 泗阳县| 江城| 临高县| 永修县| 罗城| 绵阳市| 乌审旗| 平舆县| 紫阳县|