lbl_manual {santoku}R Documentation

Defunct: label chopped intervals in a user-defined sequence

Description

[Defunct]

Usage

lbl_manual(sequence, fmt = "%s")

Arguments

sequence

A character vector of labels.

fmt

String, list or function. A format for break endpoints.

Details

lbl_manual() is defunct since santoku 1.0.0. It is little used and is not closely related to the rest of the package. It also risks mislabelling intervals, e.g. if intervals are extended. Use of lbl_manual() will give an error.

Value

A function that creates a vector of labels.

Formatting endpoints

If fmt is not NULL then it is used to format the endpoints.

See Also

Other labelling functions: lbl_dash(), lbl_discrete(), lbl_endpoints(), lbl_glue(), lbl_intervals(), lbl_midpoints(), lbl_seq()

Examples

## Not run: 
chop(1:10, c(2, 5, 8), lbl_manual(c("w", "x", "y", "z")))
# ->
chop(1:10, c(2, 5, 8), labels = c("w", "x", "y", "z"))

## End(Not run)

[Package santoku version 1.0.0 Index]