vec2tab: Vector to Array conversion

Description Usage Arguments Details Value See Also Examples

View source: R/tab2vec.r

Description

Convert a vector into an array given a set of dimensions; it therefore simply wraps aperm and array.

Usage

1
vec2tab(vec, dim)

Arguments

vec

a vector

dim

the desired array dimensions, oftentimes a vector of the number of levels of each variable in order

Details

This function converts an array (or a multi-way contingency table) into a vector, using a consistent ordering of the cells. The ordering of the cells is lexicographical and cannot be specified by the user.

Value

an array

See Also

tab2vec, aperm, array

Examples

1
2
3
4
5
6

algstat documentation built on May 29, 2017, 10:34 p.m.

Related to vec2tab in algstat...