meltWholeDF: Wide format to long format data conversion

Description Usage Arguments Details Value Author(s) Examples

View source: R/addons.R

Description

The function converts wide format data which is either a data.frame or a matrix (with dimnames present) to a long format structure. The output data.frame have three columns: X, Y, and Measure. These are: column names, row names and values of the input object, respectively.

Usage

1

Arguments

df

data.frame

Details

This function is particularly useful to prepare data for plotting with ggplot2 package.

Value

data.frame

Author(s)

Małgorzata Oleś <malgorzata.oles@embl.de>

Examples

1
2
df = data.frame(A=1:4, B=4:7, row.names=letters[1:4])
meltWholeDF(df)

MalgorzataOles/BloodCancerMultiOmics2017 documentation built on April 23, 2020, 7:33 a.m.