Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

collapseFrame

Collapse a dataframe to a single average row


Description

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

Usage

collapseFrame(data)

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

Tools for Analyzing Mixed Effect Regression Models

v0.5.2
GPL (>= 2)
Authors
Jared E. Knowles [aut, cre], Carl Frederick [aut], Alex Whitworth [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.