Description Usage Arguments Value Note Author(s) See Also
This unpacks the contents of a ... object, returning the results
in a data frame. In the R implementation, a ... object is a
pairlist of promises, usually bound to the special name
"..."
and, when bound to that name, given special
dispensation by the R interpreter when appearing in the argument
list of a call. Dots objects are normally opaque to R code, and
usually don't explicitly appear in user code, but you can obtain a
...
inside of R by using get("...")
.
1 2 3 | dots_unpack(...)
unpack(x)
|
... |
Any number of arguments. Usually, you will pass in the
... from the body of a function,
e.g. |
x |
A |
A data frame, with one row for each element of
...
, and columns:
The name of each argument, or "" if present.
The enviroment the promise came from.
The expression attached to the promise. If the promise has been evaluated, this will be NULL.
The value attached to the promise. If the promise has not been evaluated, this will be NULL. (in reality is it usually the "missing value," but it would cause too much strangeness to return missing values from a function.
There are some problems with R printing data frames containing lists of language objects (and more problems when working with "missing value" objects.) Therefore this sets the class on the columns to one that has a special as.character method.
Peter Meilstrup
dots_names dots_missing dots_expressions dots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.