round_oric: Optimal Rounding under Integer Constraints

View source: R/helpers.R

round_oricR Documentation

Optimal Rounding under Integer Constraints

Description

[Experimental]

Usage

round_oric(x)

Arguments

x

(numeric)
a numeric vector.

Value

An integer vector.

References

Cont, R., Heidari, M. (2014). Optimal rounding under integer constraints. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.48550/arXiv.1501.00014")}

Examples

x <- c(4.5, 4.1, 4.9)
round_oric(x) # 4 4 5

stratallo documentation built on Nov. 27, 2023, 1:07 a.m.