powered by
round_oric(x)
An integer vector.
(numeric) a numeric vector.
numeric
Cont, R., Heidari, M. (2014). Optimal rounding under integer constraints. tools:::Rd_expr_doi("10.48550/arXiv.1501.00014")
x <- c(4.5, 4.1, 4.9) round_oric(x) # 4 4 5
Run the code above in your browser using DataLab