Files
civilyticsR/man/perturb_count.Rd
Jared Knowles c6079eb515
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
working build
2023-07-20 14:51:04 -04:00

27 lines
658 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{perturb_count}
\alias{perturb_count}
\title{Add a random jitter to a count variable to mask its true value}
\usage{
perturb_count(x, fac = 3)
}
\arguments{
\item{x}{the vector of numerics}
\item{fac}{the range of values to add or subtract to perturb the count}
}
\value{
a numeric vector
}
\description{
Add a random jitter to a count variable to mask its true value
}
\details{
The count in the name means that this function enforces a floor of
0 on values, so values perturbed to have less than 0 will be capped at 0.
}
\examples{
perturb_count(20:30, fac = 3)
}