[R] Rounding to the nearest 5

Ottorino-Luca Pantani
Mon, 17 Aug 2009 10:39:26 -0000

Steve Murray ha scritto:
> Dear all,
>
> A hopefully simple question: how do I round a series of values (held in an
object) to the nearest 5? I've checked out trunc, round, floor and ceiling,
but these appear to be more tailored towards rounding decimal places.
>
> Thanks,
>
> Steve
>
>
I had a similar problem in the past
Take a look at
http://tolstoy.newcastle.edu.au/R/e4/help/08/05/11017.html
and to the replies

--
Ottorino-Luca Pantani, Universit? di Firenze
Dip. Scienza del Suolo e Nutrizione della Pianta
P.zle Cascine 28 50144 Firenze Italia
Tel 39 055 3288 202 (348 lab) Fax 39 055 333 273
OLPantani at unifi.it  http://www4.unifi.it/dssnp/