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

Activity: Installing the Tidyverse Packages

Scenario

You have been assigned the task of developing a report using R. You need to install the Tidyverse packages to develop that report.

Aim

To install Tidyverse, a set of useful packages that will be used later in the book. Load the inbuilt datasets into the project.

Prerequisites

Make sure that you have R and RStudio installed on your machine.

Steps for completion

  1. Install the Tidyverse package using the install.package() function.
  1. Load the ggplot2 library and the built-in msleep dataset.
Note that msleep is a built-in dataset in the ggplot2 package. We'll use R built-in datasets throughout this book.
  1. Save the global image of the environment for use later use.

This activity was crucial. We've added a dataset and the Tidyverse packages to the project we intend to use for the rest of the book. We've also saved a copy of our global environment to our working directory. The Tidyverse packages, dplyr, ggplot2, tidyr, and a few others, will be very helpful throughout this book and in your data science work.

主站蜘蛛池模板: 钦州市| 榆树市| 洮南市| 临漳县| 高唐县| 自治县| 贡觉县| 洛川县| 安达市| 含山县| 浦江县| 林甸县| 彰武县| 行唐县| 清原| 黔东| 巴南区| 绥化市| 大同市| 两当县| 平武县| 合阳县| 分宜县| 新闻| 永福县| 浮山县| 项城市| 宝坻区| 临朐县| 仲巴县| 专栏| 广德县| 米林县| 安吉县| 富宁县| 达日县| 弥渡县| 大庆市| 崇阳县| 莫力| 霸州市|