melt.check {reshape}R Documentation

Melt check.

Description

Check that input variables to melt are appropriate.

Usage

melt.check(data, id.var, measure.var)

Arguments

data data frame
id.var Vector of identifying variable names or indexes
measure.var Vector of Measured variable names or indexes

Details

If id.var or measure.var are missing, melt.check will do its best to impute them.If you only supply one of id.var and measure.var, melt will assume the remainder of the variables in the data set belong to the other. If you supply neither, melt will assume integer and factor variables are id variables, and all other are measured.

Value

id list id variable names
measure list of measured variable names

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples






[Package reshape version 0.6.1 Index]