Format data of any type in an array.

anything.to.array(x, d, dn = NULL, perm = NULL, na.value = 0)

array.to.data.frame(a, d, reverse = TRUE)

Arguments

x

data.frame to transform in array

d

dimension of the final array

dn

dimnanmes of the final array

perm

order of the dimensions

na.value

what value should be taken for NA

a

an array to transform in data.frame

reverse

boolean, shall dimension be in reverse order.

Value

array.

Functions

  • array.to.data.frame: Transform an array in a data.frame

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org