Description Usage Arguments Value
Adds a "bin" column to a dataframe or related data strucutre which indicates whether or not another column meets a given threshold.
1 2 |
data |
The dataframe or related data structure containing the data. |
by |
The column that we will evaluate against the threshold. Pass as string. |
threshold |
The value we evaluate our "by" column with. |
levels |
The values that will be used to fill the "bin" column. |
reverse |
logical; Should values below or equal to the threshold be considered good? |
The same dataframe, but with an additional column indicating the bins our data falls into.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.