Re: [R] Calculate remainer

From: Moshe Olshansky <m_olshansky_at_yahoo.com>
Date: Wed, 19 Dec 2007 17:39:42 -0800 (PST)


> 50 %% 12

[1] 2
> 50 %/% 12

[1] 4

> ?Arithmetic

>
> 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.
> --
> View this message in context:
>
http://www.nabble.com/Calculate-remainer-tp14414906p14414906.html
> Sent from the R help mailing list archive at
> Nabble.com.
>
> ______________________________________________
> R-help_at_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.
>



R-help_at_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. Received on Thu 20 Dec 2007 - 01:44:12 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 Thu 20 Dec 2007 - 02:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.