View source: R/tidyDiscretise.R
discretise_ByValue | R Documentation |
Discretise data by the value of a continuous variable
discretise_ByValue( df, continuousVar, discreteOutputVar, bins = NA, binStrategy = linearBySize(slope = 8, minBins = 4, maxBins = 100), ... )
df |
- may be grouped, in which case the value is interpreted as different types of continuous variable |
continuousVar |
- the columns that define the continuous data. |
discreteOutputVar |
- the name of the value to create in the dataframe for the discrete data |
bins |
- (optional) number of bins |
binStrategy |
- if the number of bins is not set they will be calculated using this bin strategy |
a dataframe with an additional column with the discrete categories
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.