diagnostic: Data Frame Diagnostics

Description Usage Arguments Value Author(s) Examples

Description

Scan a data frame for data types, uniqueness, and missing data.

Usage

1
diagnostic(df, blank = TRUE)

Arguments

df

a data frame

blank

if TRUE, empty strings ("") will be treated as NA

Value

a data frame of column diagnostics with print statements

Author(s)

Sven Halvorson (svenedmail@gmail.com)

Examples

1
2
3
4
5
testdata = data.frame(x = sample(x = c("Lion", "Crystal Maiden", "Void", NA), size = 10, replace = TRUE),
                      y = sample(x = c(1:3, NA), size = 10, replace = TRUE),
                      z = sample(x = c(letters[1:2]), size = 10, replace = TRUE))
testdata
diagnostic(testdata)

svenhalvorson/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.