Skip to contents

Relabel bins from cut2 nicely for plotting NOTE: Assumes Hmisc::cut2(., oneval=FALSE)

Usage

cut_relabel(str, fmt = "%s - %s", big_mark = NULL, last_value_gte = FALSE)

Arguments

str

a character vector of labels from cut2 to re-label

fmt

a format string interpretable by sprintf to format the labels with

last_value_gte

(boolean) If TRUE, will output last level with ">=number" notation