Description Usage Arguments Details Value See Also
These functions are aliases for or thin wrappers around the functions in
the base R funprog
set. The aliases make the
functions available under the names that are usual in Lisp/Scheme.
1 2 3 4 5 6 7 | delete.matching(f, x)
reduce(f, x, init, right = FALSE, accumulate = FALSE)
map(f, ...)
keep.matching(f, x)
|
f |
A function of the appropriate arity, as in
|
x |
A vector. |
init |
As in |
right |
As in |
accumulate |
As in |
... |
As in |
The following functions are aliases for functions from base:
map
is base's Map
;
reduce
is base's Reduce
;
keep.matching
is base's Filter
;
The delete.matching
function does the opposite of
keep.matching
and returns only elements of x for which f does not
return a logically true value.
delete.matching
returns the elements of x for which f is not
logically true.
The functional-programming functions in base, especially Filter
,
under funprog
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.