inst/examples/ex-reshape.R

## Create a matrix
A <- matrix(data = sample(0:10, 100, TRUE), nrow = 20, ncol = 5)

## Transform to long data.frame
head(wide_to_long(A))
nfrerebeau/codex documentation built on May 6, 2024, 9:23 a.m.