ezr.binaryize: Make Numerical Data 0 or 1

Description Usage Arguments Value

Description

Convert values greater than or equal to a value to 1 and all other values to 0. Converts NAs to 0s.

Usage

1
2
ezr.binaryize(dataset, column, equal_or_greaterthan = 0.5,
  factorize = FALSE)

Arguments

dataset

Dataframe

column

column in quotes

equal_or_greaterthan

Converts this value or greater than to 1

factorize

Default is FALSE. Otherwise returns as numeric 0s and 1s

Value

Input dataset with modified column


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.