I guess you need "%%" and ""%/%" try > 513 %/% 100 [1] 5 > 513 %% 100 [1] 13
?"%%" Stefano -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Schmitt, Corinna Inviato: venerdì 30 marzo 2007 15.34 A: [email protected] Oggetto: [R] math-operations Hallo R-experts, for a function I need to work with the commands "div" and "mod" known from Pascal and Ruby. The only help I know is "ceiling()" and "floor()" in R. Do "div" and "mod" exist? When yes please send me a little example. In Pascal-Syntax I want: 513 div 100 = 5 513 mod 100 = 13 How can I get this in R-syntax? Thanks, Corinna ______________________________________________ [email protected] 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. ______________________________________________ [email protected] 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.
