%//% {iemisc} | R Documentation |
Floor Division (Python compatible)
Description
Performs floor (or integer) division on 2 numeric vectors.
Usage
x %//% y
Arguments
x |
numeric vector |
y |
numeric vector |
Value
The integral part of the quotient is returned.
Author(s)
Irucka Embry
References
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.
Examples
# Example 1 -- From the Python reference
library(iemisc)
5.0 / 2
# 2.5
5.0 %//% 2
# 2.0
[Package iemisc version 1.0.4 Index]