View source: R/misc-deprecated.R
lg.format | R Documentation |
Format a data.frame in long format and annotate columns
lg.format(DF, RowNames = TRUE, TRow = "Gene", categoriesA, categoriesB,
nameA = "condition", nameB = "study", col1 = "variable")
DF |
a data.frame |
RowNames |
weither the rownames should be included as new column |
TRow |
Name of the column for the row.names. Default="Gene". |
categoriesA |
vector comprising the different string that should be look into the column names of the input data.frame |
categoriesB |
vector comprising the different string that should be look into the column names of the input data.frame |
nameA |
Name of the new column to add for categoriesA in the result data.frame |
nameB |
Name of the new column to add for categoriesB in the result data.frame |
col1 |
the name of the column to parse for the categories. default: "variable" (default name given by reshape2::melt for expression data.frame ) |
a long data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.