Learn R Programming

quantable (version 0.3.6)

unpivot: unpivot data matrix

Description

unpivot data matrix

Usage

unpivot(m)

Arguments

m

matrix or dataframe

Examples

Run this code
# NOT RUN {
x = matrix(1:25,ncol=5)
x = as.data.frame(x)
colnames(x) = letters[1:5]
rownames(x) = LETTERS[1:5]
unpivot(x)
# }

Run the code above in your browser using DataLab