The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

roundyh

Implement a simple rounding function. The default round function in R uses the IEC 60559 standard therefore it rounds 0.5 to 0 and round -1.5 to -2. The roundx rounding function accounts for this and helps to round 0.5 up.

Installation

You can install the development version of roundyh like so:

install.packages('roundyh')

Example

Round Number

library(roundyh)
roundx(10.111, 1)
#> [1] 10.1

Round Dataframe

roundx_df(data.frame(c(1.111, 1, 1.11), c(1, 1, 1), c("a", "b", "c")), 1)
#>   c.1.111..1..1.11. c.1..1..1. c..a....b....c..
#> 1               1.1          1                a
#> 2               1.0          1                b
#> 3               1.1          1                c

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.