Re: [R] Calculate remainer

From: Julian Burgos <>
Date: Thu, 20 Dec 2007 12:47:50 -0800

Hi Livia,

There are several ways to do this. Try:


floor(a) will give you the entire portion, and

a-floor(a) will give you the remainder.


livia wrote:
> Hello everyone,
> I have got a question about a simple calculation. If I would like to
> calculate 50/12 and return the result as 4 and the remainer 2. Is there a
> function of doing this?
> Many thanks. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 20 Dec 2007 - 20:56:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Dec 2007 - 00:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.