Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
29 lines
809 B
R
29 lines
809 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/utils.R
|
|
\name{star_subs}
|
|
\alias{star_subs}
|
|
\title{Unsuppress data using sampling}
|
|
\usage{
|
|
star_subs(x, replace_char = "*", zeros = 15, max_value = 20)
|
|
}
|
|
\arguments{
|
|
\item{x}{a vector}
|
|
|
|
\item{replace_char}{the character you want to replace in the vector}
|
|
|
|
\item{zeros}{the number of zeroes to oversample when replacing replace_char}
|
|
|
|
\item{max_value}{the numeric maximum value the replacement for the "*" can be}
|
|
}
|
|
\value{
|
|
a numeric vector with no characters representing suppressed values
|
|
}
|
|
\description{
|
|
Unsuppress data using sampling
|
|
}
|
|
\examples{
|
|
suppr_data <- c("2", "8", "*", "*", "7", "9", "100")
|
|
star_subs(suppr_data, zeros = 1, max_value = 10)
|
|
star_subs(suppr_data, zeros = 1, max_value = 200)
|
|
}
|