[R] "rounding" to a number that is LOWER than my number

Dimitri Liakhovitski dimitri.liakhovitski at gmail.com
Fri Sep 16 18:28:54 CEST 2011


What function would allow me to "round" down, rather than up?
For example, x<-1.98
I'd like to get 1.9 - rather than 2.0.

Reason - I am creating a minimum for an axis for a plot, and I need it
to be lower than x (which, in turn, is the lowest number already).
Thank you!

Dimitri Liakhovitski

More information about the R-help mailing list