R: Recast

recast {reshape} | R Documentation

## Recast

### Description

melt and cast data in a single step

### Usage

    recast(data, formula, ..., id.var, measure.var)

### Arguments

`data` | Data set to melt
`formula` | Casting formula, see cast for specifics
`...` | Other arguments passed to cast
`id.var` | Identifying variables. If blank, will use all non measure.var variables
`measure.var` | Measured variables. If blank, will use all non id.var variables

### Details

This conveniently wraps melting and casting a data frame into one step.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### See Also

http://had.co.nz/reshape/

### Examples

    recast(french_fries, time ~ variable, id.var=1:4)

[Package reshape version 0.8.7 Index]