| Line 17... |
Line 17... |
| 17 |
\item{x}{a formal argument.}
|
17 |
\item{x}{a formal argument.}
|
| 18 |
}
|
18 |
}
|
| 19 |
\details{
|
19 |
\details{
|
| 20 |
\code{missing(x)} is only reliable if \code{x} has not been altered
|
20 |
\code{missing(x)} is only reliable if \code{x} has not been altered
|
| 21 |
since entering the function: in particular it will \emph{always}
|
21 |
since entering the function: in particular it will \emph{always}
|
| 22 |
be false after \code{x <- match.arg(x)}.
|
22 |
be false after \code{x <- match.arg(x)}.
|
| 23 |
|
23 |
|
| 24 |
The example shows how a plotting function can be written to work with
|
24 |
The example shows how a plotting function can be written to work with
|
| 25 |
either a pair of vectors giving x and y coordinates of points to be
|
25 |
either a pair of vectors giving x and y coordinates of points to be
|
| 26 |
plotted or a single vector giving y values to be plotted against their
|
26 |
plotted or a single vector giving y values to be plotted against their
|
| 27 |
indices.
|
27 |
indices.
|
| 28 |
|
28 |
|
| 29 |
Currently \code{missing} can only be used in the immediate body of
|
29 |
Currently \code{missing} can only be used in the immediate body of
|
| 30 |
the function that defines the argument, not in the body of a nested
|
30 |
the function that defines the argument, not in the body of a nested
|
| 31 |
function or a \code{local} call. This may change in the future.
|
31 |
function or a \code{local} call. This may change in the future.
|
| 32 |
|
32 |
|
| 33 |
This is a \sQuote{special} \link{primitive} function: it must not
|
33 |
This is a \sQuote{special} \link{primitive} function: it must not
|
| 34 |
evaluate its argument.
|
34 |
evaluate its argument.
|
| 35 |
}
|
35 |
}
|
| 36 |
\references{
|
36 |
\references{
|
| 37 |
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
|
37 |
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
|