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

Downloading and installing Rattle

Rattle is an R package, which is a collection of functions and data someone else has developed, and we can use it in our programs. If you already have some hands-on experience with R, then this task should be a much lighter task.

Before starting with the installation, remember that you need an active Internet connection. The following are the steps to install Rattle:

  1. We will install Rattle from R Console; to open it double-click on the R x64 3.1.1 desktop icon.
  2. In R Console, type install.packages("rattle") and press Enter. The R Console will show you a list of CRAN mirrors; choose a download mirror that is the closest to your geographic location and R will download the Rattle package, as shown here:
  3. After you have downloaded it, type library(rattle) and R will load the Rattle package into memory, and you will be able to use it. Use the rattle() command to start Rattle:
    Note

    Rattle needs other R packages to work properly, the first time you open Rattle, the system will ask your permission to install some packages; in order to execute Rattle, you have to accept the installation of these packages.

  4. To exit, click on the Quit icon from Rattle GUI and type q() in the R Console:
    Tip

    If you are from a non-English speaking country, you've probably installed everything in English, but Rattle's texts appear in your own language. Rattle will work fine in your language, but this book is written in English and it will refer to Rattle's functions and menus using English names. If you prefer to execute Rattle in English, quit Rattle and type Sys.setenv(LANGUAGE="en") in your R Console and start Rattle again.

    Tip

    Rattle's menu now appears in English.

主站蜘蛛池模板: 甘南县| 石家庄市| 潮安县| 资中县| 安西县| 金湖县| 都江堰市| 锦州市| 黎川县| 赤水市| 华池县| 精河县| 化德县| 南靖县| 黄山市| 西峡县| 城固县| 措美县| 古浪县| 孝感市| 邹城市| 长葛市| 鸡东县| 高雄县| 类乌齐县| 类乌齐县| 庆阳市| 射洪县| 新沂市| 高邑县| 彰化县| 腾冲县| 饶河县| 旬邑县| 库尔勒市| 防城港市| 明溪县| 阿合奇县| 武山县| 上高县| 镶黄旗|