ageClass: ageClass

Description Usage Arguments Examples

View source: R/ageClass.R

Description

Function to create variables with different age class

Usage

1
ageClass(ageVector, classType = "class10")

Arguments

ageVector

numeric vector including the age to be proccess

classType

charactor vector of length 1 used to specify which age class cut to apply

Examples

1
2
y <- data.frame(id=1:10, age=sample(18:60, 10))
y <- cbind(y, ageClass(ageVector = y$age, classType = "class10"))  # classType %in% c("classAMT", "class10", "class5", "classDecennie")

gwielinski/GWmisc documentation built on May 14, 2017, 6:06 p.m.