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

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.

主站蜘蛛池模板: 荥经县| 黔江区| 泾源县| 张家口市| 太康县| 大石桥市| 徐闻县| 丘北县| 竹北市| 汤阴县| 普格县| 东安县| 江北区| 托里县| 新巴尔虎右旗| 南陵县| 通榆县| 亳州市| 进贤县| 白玉县| 中超| 房产| 巍山| 阿城市| 信阳市| 成武县| 蓬安县| 大埔区| 门源| 乐都县| 阜南县| 松阳县| 芜湖市| 延津县| 武邑县| 永宁县| 玉山县| 博客| 招远市| 嘉荫县| 双鸭山市|