formatted_range: Compute range and format it

View source: R/photobio-utils.R

formatted_rangeR Documentation

Compute range and format it

Description

Compute the range of an R object, and format it as string suitable for printing.

Usage

formatted_range(x, na.rm = TRUE, digits = 3, nsmall = 2, collapse = "..")

Arguments

x

an R object

na.rm

logical, indicating if NA's should be omitted.

digits, nsmall

numeric, passed to same name parameters of format().

collapse

character, passed to same name parameter of paste().

See Also

range, format and paste.

Examples

formatted_range(c(1, 3.5, -0.01))


photobiology documentation built on Oct. 21, 2023, 1:06 a.m.