- Hands-On Exploratory Data Analysis with R
- Radhika Datar Harish Garg
- 203字
- 2021-06-24 14:10:43
Reshaping and tidying up erroneous data
Erroneous data is regarded as data that falls outside of what is accepted and what should be rejected by the system. In this section, we will focus on two major activities: reshaping and tidying up erroneous data. With the R programming language, this process can be achieved with the tidyr package. This package is designed specifically for data tidying and works well with manipulated data. It is important that you install this package if you have newly installed the R environment.
The following steps are implemented to include this package in the R environment:
- Use the install.packages command to install the tidyr package in its entirety:
> install.packages("tidyr")
From this, we get the following output:

- Now, it is important to include this package in your workspace (R environment). By including it, we can call the necessary libraries and functions associated with this package in the R workspace:
> library(tidyr)
From this, we get the following output:

Once we have included the tidyr package in our system, we can proceed with reshaping and tidying up the mpg dataset. This process requires the following functions:
- gather()
- unite()
- separate()
- spread()
- 電氣自動化專業(yè)英語(第3版)
- Mastering Proxmox(Third Edition)
- 大數(shù)據(jù)管理系統(tǒng)
- ABB工業(yè)機器人編程全集
- 大數(shù)據(jù)專業(yè)英語
- 精通Excel VBA
- JSF2和RichFaces4使用指南
- INSTANT Drools Starter
- 基于敏捷開發(fā)的數(shù)據(jù)結(jié)構(gòu)研究
- Cloudera Hadoop大數(shù)據(jù)平臺實戰(zhàn)指南
- Deep Learning Essentials
- Practical Network Automation
- 傳感器應(yīng)用技術(shù)
- Mastering Android Game Development with Unity
- 微計算機原理及應(yīng)用