discretise_ByValue: Discretise data by the value of a continuous variable

View source: R/tidyDiscretise.R

discretise_ByValueR Documentation

Discretise data by the value of a continuous variable

Description

Discretise data by the value of a continuous variable

Usage

discretise_ByValue(
  df,
  continuousVar,
  discreteOutputVar,
  bins = NA,
  binStrategy = linearBySize(slope = 8, minBins = 4, maxBins = 100),
  ...
)

Arguments

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

Value

a dataframe with an additional column with the discrete categories


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.