| Line 3... |
Line 3... |
| 3 |
% Copyright 1995-2023 R Core Team
|
3 |
% Copyright 1995-2023 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{chooseOpsMethod}
|
6 |
\name{chooseOpsMethod}
|
| 7 |
\title{Choose the Appropriate Method for Ops}
|
7 |
\title{Choose the Appropriate Method for Ops}
|
| 8 |
\usage{chooseOpsMethod(x, y, mx, my, cl, reverse)}
|
- |
|
| 9 |
\alias{chooseOpsMethod}
|
8 |
\alias{chooseOpsMethod}
|
| 10 |
\alias{chooseOpsMethod.default}
|
9 |
\alias{chooseOpsMethod.default}
|
| - |
|
10 |
\usage{
|
| - |
|
11 |
chooseOpsMethod(x, y, mx, my, cl, reverse)
|
| 11 |
|
12 |
}
|
| 12 |
\description{
|
13 |
\description{
|
| 13 |
\code{chooseOpsMethod} is a function called by the Ops Group Generic when two
|
14 |
\code{chooseOpsMethod} is a function called by the \code{Ops} Group Generic when two
|
| 14 |
suitable methods are found for a given call. It determines which method to
|
15 |
suitable methods are found for a given call. It determines which method to
|
| 15 |
use for the operation based on the objects being dispatched.
|
16 |
use for the operation based on the objects being dispatched.
|
| 16 |
|
17 |
|
| 17 |
The function is first called with \code{reverse = FALSE}, where
|
18 |
The function is first called with \code{reverse = FALSE}, where
|
| 18 |
\code{x} corresponds to the first argument and \code{y} to the second
|
19 |
\code{x} corresponds to the first argument and \code{y} to the second
|
| Line 21... |
Line 22... |
| 21 |
with \code{x} and \code{y} swapped, \code{mx} and \code{my} swapped,
|
22 |
with \code{x} and \code{y} swapped, \code{mx} and \code{my} swapped,
|
| 22 |
and \code{reverse = TRUE}.
|
23 |
and \code{reverse = TRUE}.
|
| 23 |
}
|
24 |
}
|
| 24 |
|
25 |
|
| 25 |
\arguments{
|
26 |
\arguments{
|
| 26 |
\item{x,y}{The objects being dispatched on by the group generic.}
|
27 |
\item{x, y}{the objects being dispatched on by the group generic.}
|
| 27 |
\item{mx,my}{The methods found for objects \code{x} and \code{y}.}
|
28 |
\item{mx, my}{the methods found for objects \code{x} and \code{y}.}
|
| 28 |
\item{cl}{The call to the group generic.}
|
29 |
\item{cl}{the call to the group generic.}
|
| 29 |
\item{reverse}{A logical value indicating whether \code{x} and \code{y} are
|
30 |
\item{reverse}{logical value indicating whether \code{x} and \code{y} are
|
| 30 |
reversed from the way they were supplied to the generic.}
|
31 |
reversed from the way they were supplied to the generic.}
|
| 31 |
}
|
32 |
}
|
| 32 |
|
33 |
|
| 33 |
\seealso{
|
34 |
\seealso{
|
| 34 |
\code{\link[=S3groupGeneric]{Ops}}
|
35 |
\code{\link[=S3groupGeneric]{Ops}}
|
| 35 |
}
|
36 |
}
|