Description Usage Arguments Details Examples
Create a binned variable.
1 | bin(x, width = find_width(x), origin = find_origin(x, width), name = NULL)
|
x |
numeric or integer vector |
width |
bin width. If not specified, about 10,000 bins will be chosen
using the algorithim in |
origin |
origin. If not specified, guessed by |
name |
name of original variable. This will be guessed from the input to
|
This function produces an R reference class that wraps around a C++ function.
Generally, you should just treat this as an opaque object with reference
semantics, and you shouldn't call the methods on it - pass it to
condense
and friends.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.