R/round_set.R

Defines functions `round<-`

#' Change the Digital for Double
#'
#' @param x a double number
#' @param value digital number
#'
#' @return double number
#' @export
#'
#' @examples
#' x = 3.123
#' #usual method
#' x = round(x, 3)
#' #now
#' round(x) = 3
`round<-` <- function(x,value){
    round(x,value)
}

Try the fastStat package in your browser

Any scripts or data that you put into this service are public.

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.