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

condense-ss

Condense


Description

Condense a data frame.

Usage

condense(data, variables, fun, ...)

Arguments

data

data frame

variables

variables to condense over

fun

aggregating function, may multiple values

...

further arguments passed on to aggregating function

Details

Works very much like by, but keeps data in original data frame format. Results column is a list, so that each cell may contain an object or a vector etc. Assumes data is in molten format. Aggregating function must return the same number of arguments for all input.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


reshape

Flexibly Reshape Data

v0.8.8
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre]
Initial release

We don't support your browser anymore

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