.round_afz | R Documentation |
Bruker alternativ avrundringsfunskjon, med ulik behandling av avrundingsfeil på 0.5n (afz = away from zero, 1.5 ≈ 2, -2.5 ≈ -3). Funksjonen base::round bruker såkalt "banker's rounding" hvor det rundes bort fra oddetall (1.5 ≈ 2, -2.5 ≈ -2).
.round_afz(x, digits = 0)
x |
value |
digits |
decimal places |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.