e1 op e2
%/% is integer divide; the operands should be numeric and the result is floor(e1/e2) if e2!=0 and 0 if e2==0.
%% is the modulo function; it also expects numeric operands and is defined as e1-floor(e1/e2)*e2 if e2!=0 and e1 otherwise (see Knuth, 1968, section 1.2.4). Thus %/% and %% always satisfy e1==(e1%/%e2)*e2+e1%%e2.
Section 5.6.1 of Becker, Chambers and Wilks describes the rules for dealing with operands possessing attributes. Also see section 5.1.5 for details on domains and branch cuts in the case of complex arguments for exponentiation.
The .Uminus function performs the unary minus operation. For example, -2 is the same as .Uminus(2).
These are generic functions since they are part of the Ops group. Group methods exist for data frames. They also exist for factors and ordered factors, but arithmetic is not allowed for these classes.
x-mean(x) # deviations from the mean; second argument used repeatedly (1+(5:8)/1200)^12 # compound interest, 5:8 per annum monthlyget("%/%") # print the definition