reshape1 {reshape}R Documentation

Casting workhorse.

Description

Takes data frame and variable list and casts data.

Usage

reshape1(data, rows = NULL, cols = NULL, fun.aggregate, margins, ...)

Arguments

data data frame
rows variables to appear in columns
cols variables to appear in rows
fun.aggregate aggregation function
margins vector of variable names (can include "grand_col" and "grand_row") to compute margins for, or TRUE to computer all margins
... further arguments are passed to aggregating function

Details

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

cast

Examples






[Package reshape version 0.5 Index]