dfSmry: Brief Summary of a Data Frame

View source: R/dfSmry.R

dfSmryR Documentation

Brief Summary of a Data Frame

Description

Brief summary of a data frame, number of unique and missing values.

Usage

dfSmry(df)

Arguments

df

A data frame to be summarized

Value

A matrix with a row for each variable (column) in df and three columns: no.unique the number of unique values, no.entered the number of rows in df with non-missing values, and no.missing the number of rows in df with missing values.

Examples

mydat <- data.frame(a=c(1, 1, NA, 2, 2),
 b=as.factor(c("cat", "dog", "frog", "", "dog")),
 c=c("a", "", "", "a", "b"),
 stringsAsFactors=FALSE)
dfSmry(mydat)


krphillips/EchoNet2Fish documentation built on March 19, 2022, 11:59 p.m.