contents: Basic summary of the data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/contents.R

Description

Takes in a data and returns summary of the data

Usage

1

Arguments

data

a data.frame or data.table

Details

This function helps when one wants to get a quick snapshot of the data such as class, distinct values, missing values and sample value of the variables.

It works for both 'data.frame' and 'data.table' but the output will be a 'data.frame' only.

Value

a data.frame that contains variable, class, distinct values, missing values, percentage of missing value and sample value

Author(s)

Akash Jain

See Also

dqcontinuous, dqcategorical, dqdate

Examples

1
2
3
4
5
6
7
# A data frame
df <- data.frame(x = c(1, 2, 3, 4, NA),
                 y = c('a', 'b', 'c', 'd', 'e'),
                 z = c(1, 1, 0, 0, 1))

# Summary of the data
dfContents <- contents(data = df)

Example output



StatMeasures documentation built on May 2, 2019, 1:44 p.m.