|
a |
|
b/man/meltWholeDF.Rd |
|
|
1 |
\name{meltWholeDF} |
|
|
2 |
\alias{meltWholeDF} |
|
|
3 |
\title{ |
|
|
4 |
Wide format to long format data conversion |
|
|
5 |
} |
|
|
6 |
\description{ |
|
|
7 |
The function converts wide format data which is either a data.frame or a matrix |
|
|
8 |
(with dimnames present) to a long format structure. The output data.frame have |
|
|
9 |
three columns: X, Y, and Measure. These are: column names, row names and |
|
|
10 |
values of the input object, respectively. |
|
|
11 |
} |
|
|
12 |
\usage{ |
|
|
13 |
meltWholeDF(df) |
|
|
14 |
} |
|
|
15 |
\arguments{ |
|
|
16 |
\item{df}{data.frame} |
|
|
17 |
} |
|
|
18 |
\details{ |
|
|
19 |
This function is particularly useful to prepare data for plotting with |
|
|
20 |
ggplot2 package. |
|
|
21 |
} |
|
|
22 |
\value{ |
|
|
23 |
data.frame |
|
|
24 |
} |
|
|
25 |
\author{ |
|
|
26 |
Małgorzata Oleś <dr.malgorzata.oles@gmail.com> |
|
|
27 |
} |
|
|
28 |
\examples{ |
|
|
29 |
df = data.frame(A=1:4, B=4:7, row.names=letters[1:4]) |
|
|
30 |
meltWholeDF(df) |
|
|
31 |
} |