age_cat: function to categorize ages From...

View source: R/age_cat.R

age_catR Documentation

function to categorize ages From http://www.r-bloggers.com/r-function-of-the-day-cut

Description

function to categorize ages From http://www.r-bloggers.com/r-function-of-the-day-cut

Usage

age_cat(x, lower = 0, upper, by = 10, sep = "-", above.char = "+", style = 1)

Arguments

x:

Vector with age as numeric.

lower:

int lower age

upper:

int upper age

by:

int every

sep:

char default "-".

above.char:

default "+".

style:

1 = '50 - 54', 2 = '50', 3 = '11'.


diegogarcilazo/myutilities documentation built on Jan. 4, 2024, 2:11 p.m.