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
olpant...@unifi.it http://www4.unifi.it/dssnp/
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.