DichotomizeFactor: Converts a list of variable or data frames into a data.frame.

View source: R/variable.R

DichotomizeFactorR Documentation

Converts a list of variable or data frames into a data.frame.

Description

Converts a list of variable or data frames into a data.frame.

Usage

DichotomizeFactor(
  variable,
  cutoff = 0.5,
  warning = FALSE,
  name = RemoveParentName(deparse(substitute(variable)))
)

Arguments

variable

A variable in a DataSet or data.frame.

cutoff

The cutoff point to split the variable into.

warning

If TRUE, raise a warning showing the new levels.

name

An alternate name to show instead of the deparsed variable name.


NumbersInternational/flipTransformations documentation built on Feb. 26, 2024, 6:43 a.m.