map2df: Make a matrix that transfer a vectorized table array to a...

Description Usage Arguments Value Examples

View source: R/SphereKaji20140527.R

Description

Make a matrix that transfer a vectorized table array to a vector in the df-dimensional space

Usage

1
map2df(A)

Arguments

A

An array or matrix of multiway table

Value

A matrix

Examples

1
2
3
4
r <- c(2,3,4)
A <- array(1:prod(r),r)
M <- map2df(A)
M %*% c(A)

ryamada22/mwaytable documentation built on May 28, 2019, 10:44 a.m.