Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Convert2ThreeWay

Three way array from a two way matrix


Description

Converts a two-dimensional matrix into a list where each cell is the two dimensional data matrix for an occasion or group.

Usage

Convert2ThreeWay(x, groups, columns = FALSE, RowNames = NULL)

Arguments

x

The two dimensional matrix

groups

A factor defining the groups

columns

Are the grouos defined for columns?

RowNames

Names for the rows of each table.

Details

Converts a two dimensional matrix into a multitable list according to the groups provided by the user. Each field of the list has the name of the corresponding group.

Value

A Multitable list. Ech filed is the data matrix for a group.

X

The multitable list

Author(s)

Jose Luis Vicente Villardon

Examples

data(Chemical)
x= Chemical[,5:16]
X=Convert2ThreeWay(x,Chemical$WEEKS, columns=FALSE)

MultBiplotR

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.