variablize: Variablization

Description Usage Arguments Value Note See Also Examples

Description

Convert all but the first dimension of replication of an array or data list into variables. Currently an experimental function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
variablize(x, ...)

## Default S3 method:
variablize(x, ...)

## S3 method for class 'factor'
variablize(x, ...)

## S3 method for class 'data.list'
variablize(x, ...)

Arguments

x

A data list

...

Not currently used

Value

A data frame with the first dimension of x representing the observations (rows) and all other dimensions of x treated as variables (columns). If x is a data.list then any variable not replicated along the first dimension is removed.

Note

To use a dimension other than the first as the rows of the data frame, transpose the array (aperm) or data list (aperm.data.list) first.

See Also

aperm.data.list,data.list

Examples

1
2
3

stevencarlislewalker/multitable documentation built on May 30, 2019, 4:44 p.m.