units_tx: Create labels with units.

Description Usage Arguments Details Value Author(s) Examples

Description

units_tx creates labels for considering singular or plural values.

Usage

1
units_tx(vec, unit = "weeks", singular = NULL)

Arguments

vec

Vector of values.

unit

Name of unit in plural

singular

Name of the unit in singular.

Details

details.

Value

return.

Author(s)

Erick A. Chacon-Montalvan

Examples

1
2
3
x <- sample(1:3, size = 10, replace = TRUE)
units_tx(x)
units_tx(x, unit = "grams", singular = "grams")

ErickChacon/day2day documentation built on May 6, 2019, 4:03 p.m.