melt_check(data, id.vars, measure.vars)
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
discrete variables are id variables and all other are measured.