moround | R Documentation |
The function rounds the value up (either numeric or a numeric vector) to the multiplication of the specified base.
moround(x,base)
x |
numeric vector |
base |
numeric vector |
Both arguments could be either single numeric or numeric vectors. Base argument should be either of length 1 or the divisible of the length of argument x.
numeric vector
Małgorzata Oleś <malgorzata.oles@embl.de>
moround(x=c(1.23, 5, 5.1, 8), base=5)
moround(x=c(1.23, 5, 5.1, 8), base=c(2, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.