recode.by: Title

Description Usage Arguments Value Examples

View source: R/dataman.R

Description

Title

Usage

1
recode.by(xvar, tovar = "", by = 10, update = TRUE)

Arguments

xvar

The numeric variable to recode

tovar

Optionnaly, the new variable to create in the data frame

by

Either a numeric representing the size of each categorie or a vector with the cutoff

update

if TRUE, the default then original data.frame is updated

Value

The new variable

Examples

1
recode.by(gastro$age,agegr,by=10)

gdesve/epifield documentation built on Jan. 23, 2022, 10:03 a.m.