add additional functions
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
% 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)
|
||||
}
|
||||
Reference in New Issue
Block a user