%//% | R Documentation |
Performs floor (or integer) division on 2 numeric vectors.
x %//% y
x |
numeric vector |
y |
numeric vector |
The integral part of the quotient is returned.
Irucka Embry
Jakub Przywóski: "Python Reference (The Right Way)". // floor division, 2015, Revision 9a3b94e7, https://python-reference.readthedocs.io/en/latest/docs/operators/floor_division.html.
# Example 1 -- From the Python reference
library(iemisc)
5.0 / 2
# 2.5
5.0 %//% 2
# 2.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.