Description Usage Arguments Details Value Note Author(s) See Also

Functions to convert a matrix to a list of partitioned matrices, and back again.

1 |

`M` |
matrix to be partitioned according to |

`df` |
integer vector. See Details |

`CC` |
list of matrices, typically the output of |

`m2c`

partitions a matrix into a list of matrices, by putting the first
`df[1]`

coloumns into the first matrix, the next `df[2]`

coloumns
into the second, etc.

`c2m`

joins a partitioned matrix back into a single matrix.
`c2m(m2c(X, df))`

equals `X`

.

`c2df`

takes a list of matrices and returns a vector with the number of
coloumns of the matrices.

`m2c`

returns a list of matrices.

`c2m`

returns a matrix.

`c2df`

returns a numeric vector.

`sum(df)`

must equal `ncol(X)`

.

<c3><98>yvind Langsrud and Bj<c3><b8>rn-Helge Mevik

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.