ed_cat: Categorize a continuous education variable into common...

Description Usage Arguments Value Examples

View source: R/ed_cat.r

Description

Categorize a continuous education variable into common categories.

Usage

1
ed_cat(data, edvar, groups = "basic", factor = TRUE)

Arguments

data

Data Frame with the education variable to categorize.

edvar

Name of the education variable.

groups

Categorization Scheme: more, basic, higher

factor

Return a factor or not. Defaults to TRUE

Value

A factor, unless otherwise specified, with recoded edvar.

Examples

1

robkemp/codemog documentation built on May 27, 2019, 11:57 a.m.