collapseFrame: Collapse a dataframe to a single average row

Description Usage Arguments Details Value

View source: R/merData.R

Description

Take an entire dataframe and summarize it in one row by using the mean and mode.

Usage

1

Arguments

data

a data.frame

Details

Each character and factor variable in the data.frame is assigned to the modal category and each numeric variable is collapsed to the mean. Currently if mode is a tie, returns a "."

Value

a data frame with a single row



merTools documentation built on May 19, 2017, 4:48 p.m.
Search within the merTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.