Re: [R] quotient and remainder

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.be>
Date: Thu 23 Jun 2005 - 17:01:08 EST

> 11%/%5

[1] 2
> 11%%5

[1] 1
>

Best,
Dimitris

p.s., I'd suggest you to take a look at the "An Introduction to R" doc



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.be/biostat/

     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm



> hi netters
>
> Is there a function in R that can compute the quotient and remainder
> of a
> division calculation? such that when 11 is given as the dividend
> and 5
> the divider, the function returns 2(quotient) and 1(remainder).
>
> Thanks a lot!
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>
>


> ______________________________________________
> 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



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 Received on Thu Jun 23 17:06:05 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:58 EST