Checking data quality

There are several inbuilt functions as well as packages for checking the quality of data in R. The most commonly used among them is the summary function in base R:

## Packages Used: 
## psych, pastecs, dataMaid, daff 
 
# install.packages(c("psych","pastecs","dataMaid","daff")) 
 
state <- data.frame(state.x77) 
state$State <- row.names(state) 
state 
 
 
summary(state) 

The output of the preceding code is as follows:

library(psych) 
describe(state) 

The output of the preceding code is as follows:

You can also use describe.by to get ...

Get Hands-On Data Science with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.