melt-check-j7: Melt check.

melt_checkR Documentation

Melt check.

Description

Check that input variables to melt are appropriate.

Usage

melt_check(data, id.vars, measure.vars)

Arguments

data

data frame

id.vars

Vector of identifying variable names or indexes

measure.vars

Vector of Measured variable names or indexes

Details

If id.vars or measure.vars are missing, melt_check will do its best to impute them.If you only supply one of id.vars and measure.vars, melt will assume the remainder of the variables in the data set belong to the other. If you supply neither, melt will assume character 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>


reshape documentation built on April 12, 2022, 5:07 p.m.