R/round.R

Defines functions round

#' Round
#'
#' @description
#'
#' Round to the nearest integer.
#'
#' @details
#'
#' `round()`
#'
#' @usage
#'
#' @examples
#'
#' # By default, `round()` rounds to the nearest integer:
#'
#' round(1.2)
#'
#' #> [1] 1
#'
#' -----------------------------------
#'
#' # You can specify the number of decimal places to round to:
#'
#' round(1.23456, 3)
#'
#' #> 1.235
#'
#' -----------------------------------
#'
#' # `round()` is vectorized:
#'
#' round(1:5 / 3, 3)
#'
#' #> 0.333 0.667 1.000 1.333 1.667
#'
#' 
#' @export
#' @seealso
#' 
#' 
round <- function(){}
cobriant/qelp documentation built on July 1, 2022, 7:24 a.m.