Convert "Matrix Form" (wide format) to "List Form" (long format)
Source:R/main.R
hsMatrixToListForm.Rd
Converts a data frame in "matrix form" to a data frame in "list form"
Arguments
- df
data frame
- keyFields
names of key fields (e.g. date/time)
- parFields
names of fields representing differen parameters. Default: column names that are not in keyFields
- colNamePar
name of column in result data frame that will contain the parameter names
- colNameVal
name of column in result data frame that will contain the parameter values
- stringsAsFactors
if TRUE, columns of type character in the result data frame are converted to factors. Parameter is passed to cbind, rbind.