View source: R/Convert2ThreeWay.R

Convert2ThreeWay | R Documentation |

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

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

`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. |

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.

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

`X ` |
The multitable list |

Jose Luis Vicente Villardon

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.