Richard M. Heiberger wrote:

>> tmp <- c(0,.5,1.5,2.1,3.1,4)
>> floor(tmp/2)
> [1] 0 0 0 1 1 2
>> floor(tmp/2)*2
> [1] 0 0 0 2 2 4

Thanks so much!

Joh

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to