View source: R/longFormatSave.R
meltBatchCodes | R Documentation |
Turns a batchCode column into rows in a long format
meltBatchCodes(entityData, batchCodeStateIndices,
replacedFakeBatchCode = NULL, optionalColumns = c("treatmentGroupID",
"analysisGroupID", "stateVersion"))
entityData |
a data frame with data |
batchCodeStateIndices |
a numeric vector of indices in the stateGroupIndexColumn which should have batchCodes melted |
replacedFakeBatchCode |
deprecated: a character vector of fake batch id's that were replaced, marking invalid batch codes |
optionalColumns |
Columns to include in output (if available). Often the entityID is needed for saving later |
Does not work with data.table. entityData must have columns "batchCode", "stateID", "stateGroupIndex". If "batchCode" is missing, will return an empty data.frame. publicData is always set to TRUE. In longFormatSave.R
A data frame with rows for all code values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.