lg.format: Format a data.frame in long format and annotate columns

View source: R/misc-deprecated.R

lg.formatR Documentation

Format a data.frame in long format and annotate columns

Description

Format a data.frame in long format and annotate columns

Usage

lg.format(DF, RowNames = TRUE, TRow = "Gene", categoriesA, categoriesB,
  nameA = "condition", nameB = "study", col1 = "variable")

Arguments

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 )

Value

a long data.frame


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.