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