dfSmry: Brief Summary of a Data Frame

Description Usage Arguments Value Examples

View source: R/dfSmry.R

Description

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

Usage

1

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

1
2
3
4
5
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)

JVAdams/EchoNet2Fish documentation built on Feb. 15, 2021, 4:27 a.m.