Learn R Programming

reshape (version 0.8.10)

expand: Expand

Description

Expand out condensed data frame.

Usage

expand(data)

Author

Hadley Wickham <h.wickham@gmail.com>

Arguments

data

condensed data frame

Details

If aggregating function supplied to condense returns multiple values, this function "melts" it again, creating a new column called result_variable.

If the aggregating funtion is a named vector, then those names will be used, otherwise will be number X1, X2, ..., Xn etc.