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

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.

主站蜘蛛池模板: 新龙县| 九江市| 余干县| 福建省| 靖西县| 清镇市| 五家渠市| 凤台县| 莒南县| 禹州市| 花垣县| 禹州市| 清流县| 松江区| 乾安县| 临邑县| 沂南县| 云霄县| 上虞市| 巴彦县| 香港 | 涟水县| 灌阳县| 永州市| 扬州市| 聂荣县| 株洲县| 娄底市| 高碑店市| 宝兴县| 嵊州市| 台东县| 吉首市| 湘西| 枣阳市| 甘肃省| 敦化市| 益阳市| 阿克苏市| 安丘市| 遂宁市|