categorize: Return categorical values for a numerical variable

Description Usage Arguments Examples

Description

This function returns categories for a numerical variable, divided into either 2 or 4 or 5 or 10 categories.

Usage

1
categorize(x, y = 4)

Arguments

x

The numerical variable, which should be split up into categories.

y

The desired number of categories with possible values 2, 4, 5, or 10.

Examples

1
categorize(1:100, y =  5)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.