Description Usage Arguments Value Examples

View source: R/modalities_functions.R

Regroup the contiguuous elements of a vector under a single value. Which elements should be regrouped is indicated by the rows of a matrix. Output vector is NOT a factor.

1 | ```
regroupModalities(column, regroupMatrix, modalities = NULL)
``` |

`column` |
Column vector which values are going to be replaced |

`regroupMatrix` |
Bounds of the values to regroup under the same modality |

`modalities` |
Specify the values of the modalities to use. Must match number of rows of regroupMatrix If not specified, replacement modalities will be 1:length(column) |

Column vector with regrouped modalities

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.