Description Usage Arguments Value Author(s) See Also Examples

Create a factor dissecting the range of a numeric variable into
bins of equal width, (roughly) equal frequency, or at "natural"
cut points. The `cut`

function is used to create the factor.
`bin.var`

is a synomym for `binVariable`

, retained for backwards compatibility.

1 2 3 4 |

`x` |
numeric variable to be binned. |

`bins` |
number of bins. |

`method` |
one of |

`labels` |
if |

`...` |
arguments to be passed to |

A factor.

Dan Putler, slightly modified by John Fox jfox@mcmaster.ca with the original author's permission.

1 | ```
summary(binVariable(rnorm(100), method="prop", labels=letters[1:4]))
``` |

```
Loading required package: car
Loading required package: carData
Loading required package: sandwich
a b c d
25 25 25 25
```

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.