th.recode: Threshold recode

Description Usage Arguments

Description

Recode data based on a threshold. Data >= threshold will be 1, data < threshold = 0.

Threshold recode (alternate name)

Usage

1
2
3
th.recode(x, threshold)

threshold.recode(x, threshold)

Arguments

x

A number to be recoded

threshold

The threshold for recoding


akeyel/myr documentation built on May 12, 2019, 4:41 a.m.