tbl_ntile_bin: Create ntile bins

View source: R/binning.R

tbl_ntile_binR Documentation

Create ntile bins

Description

Create ntile bins

Usage

tbl_ntile_bin(
  data,
  variables = NULL,
  ntiles = NULL,
  remove_original_bin = F,
  remove_summary_features = T
)

Arguments

variables

name of the bin variables

ntiles

number of ntiles

remove_original_bin

remove the orignial numeric feature

remove_summary_features

remove summaray fatures

Examples

library(ggplot2)
library(asbtools)

tbl_ntile_bin(diamonds, variables = c("price", "carat"), ntiles = c(5,10))
tbl_ntile_bin(diamonds, variables = c("price"), ntiles = c(5,10))
tbl_ntile_bin(diamonds, variables = c("carat"), ntiles = c(10))


abresler/asbtools documentation built on July 28, 2022, 11:04 p.m.