Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
24 lines
504 B
R
24 lines
504 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/utils.R
|
|
\name{random_round}
|
|
\alias{random_round}
|
|
\title{Add random noise to a variable before rounding}
|
|
\usage{
|
|
random_round(x)
|
|
}
|
|
\arguments{
|
|
\item{x}{a numeric we want to round}
|
|
}
|
|
\value{
|
|
rounded values
|
|
}
|
|
\description{
|
|
Add random noise to a variable before rounding
|
|
}
|
|
\details{
|
|
Credit to Jens von Bergmann for this algo https://github.com/mountainMath/dotdensity/blob/master/R/dot-density.R
|
|
}
|
|
\examples{
|
|
random_round(1.93)
|
|
}
|