Files
civilyticsR/man/rnh.Rd
jared 962f8ea6b7
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
add rounding utilities
2024-09-19 14:32:43 -04:00

21 lines
384 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{rnh}
\alias{rnh}
\title{Round values to the nearest 0.5}
\usage{
rnh(x)
}
\arguments{
\item{x}{a numeric vector to round}
}
\value{
a numeric vector with all elements rounded to 0, 0.5, or 1
}
\description{
Round values to the nearest 0.5
}
\examples{
rnh(c(0.2, 0.3, 0.4, 0.8, 0.09, 0.9))
}