combineDFSingleColumn | R Documentation |
Takes a list of data.frame's and melts together the specified column from each data.frame. The resulting data.frame can be used for ...multi functions, eg statHistMultiple. Essentially this is a 'melt' function to join together data from different data.frame's
combineDFSingleColumn(
data,
column = 1,
variableName,
useWidth = 1,
padChar = "0",
variableClass = "character",
variableColumn = "variable",
valueColumn = "value"
)
data |
the data to be used, should be a list of data.frames |
column |
defines which column (must be a single one) from each of the data.frame's is to be used to melt together. |
variableName |
character vector, name(s)/identifier(s) of the different data.frame's. If length of this argument is 1, then it is used together with useWidth and padChar arguments. The full names of the elements of the list will then be eg norm001, norm002, etc. If length is same as the length of the list (of data.frame's), then the character vectors will be used as names without adding numbers |
useWidth |
'width' of the number to use together with the variableName argument, see also the function stringr::str_pad which is used in this function |
padChar |
padding character to use together with useWidth and padChar when using numbered identifiers, see also variableName and useWidth arguments |
variableClass |
character vector: defines the class for the variable column of the resulting data.frame. Options are "character" (default), "integer" and "numeric" |
variableColumn |
character vector: defines the name of the variable column of the resulting data.frame (identifier column for the list elements from which the data was taken to melt together) |
valueColumn |
character vector: defines the name of the value column of the resulting data.frame |
a data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.