Description Usage Arguments Value Author(s) Examples

Rename columns in a matrix or a dataframe.

1 | ```
renameCol(indata, src, tgt)
``` |

`indata` |
A dataframe or a matrix |

`src` |
Source: Vector of names of columns in 'indata' to be renamed. Can also be a vector of column numbers. |

`tgt` |
Target: Vector with corresponding new names in the output. |

A dataframe if 'indata' is a dataframe; a matrix in 'indata' is a matrix.

Søren Højsgaard, [email protected]

1 2 3 4 5 6 |

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.