Learn R Programming

stratallo (version 2.2.1)

round_oric: Optimal Rounding under Integer Constraints

Description

[Experimental]

Usage

round_oric(x)

Value

An integer vector.

Arguments

x

(numeric)
a numeric vector.

References

Cont, R., Heidari, M. (2014). Optimal rounding under integer constraints. tools:::Rd_expr_doi("10.48550/arXiv.1501.00014")

Examples

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

Run the code above in your browser using DataLab