map2full: Make a matrix that transfer back a vector in the...

Description Usage Arguments Value Examples

View source: R/SphereKaji20140527.R

Description

Make a matrix that transfer back a vector in the df-dimensional space to a vector with number-of-cell of table elements

Usage

1

Arguments

A

An array or matrix of multiway table

Value

A matrix

Examples

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

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