📜  如何在 r 中获得回合 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:49.941000             🧑  作者: Mango

代码示例1
floor(x) # rounds to the smallest nearest integer
ceiling(x) # rounds to the largest nearest integer
trunc(x) rounds to the nearest integer in the direction of 0
format(round(x, 2), nsmall = 2)