1% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/melt.r
3\name{melt_check}
4\alias{melt_check}
5\title{Check that input variables to melt are appropriate.}
6\usage{
7melt_check(data, id.vars, measure.vars, variable.name, value.name)
8}
9\arguments{
10\item{data}{data frame}
11
12\item{id.vars}{vector of identifying variable names or indexes}
13
14\item{measure.vars}{vector of Measured variable names or indexes}
15
16\item{variable.name}{name of variable used to store measured variable names}
17
18\item{value.name}{name of variable used to store values}
19}
20\value{
21a list giving id and measure variables names.
22}
23\description{
24If id.vars or measure.vars are missing, \code{melt_check} will do its
25best to impute them. If you only supply one of id.vars and measure.vars,
26melt will assume the remainder of the variables in the data set belong to
27the other. If you supply neither, melt will assume discrete variables are
28id variables and all other are measured.
29}
30