Description Usage Arguments Value Author(s) Examples

This utility function converts a plain vector into a row or column vector, i.e. a single-row or single-column matrix.

1 2 |

`x` |
a (typically numeric) vector |

`label` |
an optional character string specifying a label for the single row or column returned |

A single-row or single-column matrix of the same data type as `x`

.
Labels of `x`

are preserved as column/row names of the matrix.

See `matrix`

for details on how non-atomic objects are handled.

Stefan Evert <stefan.evert@fau.de>

1 2 |

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.