Description Usage Arguments Value Examples

View source: R/f0.rbsb1.code.r

Transforms continuous values into a categoric values. A first step towards the discretization of numeric variables into n classes

1 | ```
conti2categ(val, lim=0, pod=c("-", "+"))
``` |

`val` |
vector of values to be discretized. |

`lim` |
Vector of the n-1 compulsory limits to define the n classes. When x == lim[i] it belongs to the ith class. |

`pod` |
Vector of the labels associated to the n classes. Its length provides the number of classes. |

the `character`

of the resulting categoric values

1 2 3 4 | ```
set.seed(1234);
rbsb3k("RESET"); # needed only for R checking, to be forgotten
conti2categ(runif(10)-0.5);
conti2categ(runif(10), seq(0.1, 0.9, length=9), LETTERS[1:10]);
``` |

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.