Name for the response variable. If wide is a matrix with an attribute that begins with
"response", that value is taken as the responseName. Otherwise, the name of the wide
object is used.
varNames
Default names for the row and column variables if not passed as rowname or colname
long
A data.frame in long form
row
Column index or quoted name of the row variable
col
Column index or quoted name of the column variable
response
Column index or quoted name of the response variable
# NOT RUN {Arizona.long <- to_long(Arizona, varNames=c("Month", "City"))
Arizona.long
Arizona.long <- to_long(Arizona, varNames=c("Month", "City"))
# back the other wayto_wide(Arizona.long)
# }