|
a |
|
b/man/moround.Rd |
|
|
1 |
\name{moround} |
|
|
2 |
\alias{moround} |
|
|
3 |
\title{ |
|
|
4 |
Round numbers to the ceiling of a given base |
|
|
5 |
} |
|
|
6 |
\description{ |
|
|
7 |
The function rounds the value up (either numeric or a numeric vector) to the |
|
|
8 |
multiplication of the specified base. |
|
|
9 |
} |
|
|
10 |
\usage{ |
|
|
11 |
moround(x,base) |
|
|
12 |
} |
|
|
13 |
\arguments{ |
|
|
14 |
\item{x}{numeric vector} |
|
|
15 |
\item{base}{numeric vector} |
|
|
16 |
} |
|
|
17 |
\details{ |
|
|
18 |
Both arguments could be either single numeric or numeric vectors. |
|
|
19 |
Base argument should be either of length 1 or the divisible of the length of |
|
|
20 |
argument x. |
|
|
21 |
} |
|
|
22 |
\value{ |
|
|
23 |
numeric vector |
|
|
24 |
} |
|
|
25 |
\author{ |
|
|
26 |
Małgorzata Oleś <dr.malgorzata.oles@gmail.com> |
|
|
27 |
} |
|
|
28 |
\examples{ |
|
|
29 |
moround(x=c(1.23, 5, 5.1, 8), base=5) |
|
|
30 |
moround(x=c(1.23, 5, 5.1, 8), base=c(2, 5)) |
|
|
31 |
} |