Files
civilyticsR/man/random_round.Rd
Jared Knowles ac63932a31
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
add additional functions
2023-07-20 11:48:42 -04:00

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)
}