ed.cat: Categorize a continuous education variable into common...

Description Usage Arguments Value Examples

View source: R/demography_functions.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/robR documentation built on May 27, 2019, 11:57 a.m.