Compute the range of an R object, and format it as string suitable for printing.
formatted_range(x, na.rm = TRUE, digits = 3, nsmall = 2, collapse = "..")
an R object
logical, indicating if NA
's should be
omitted.
numeric, passed to same name parameters of
format()
.
character, passed to same name parameter of paste()
.
# NOT RUN {
formatted_range(c(1, 3.5, -0.01))
# }
Run the code above in your browser using DataLab