Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/r-utility-skip.R
This function skips all vector or list elements that satisfy a given condition. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.
1 | skip.cond(l, cond)
|
l |
an input vector or list |
cond |
a one-argument boolean-valued function |
The cond
function is applied to all elements of l
and those for which it returns TRUE
are skipped. In particular,
l
can be a dataframe (a list of columns) and the function can be
then used to skip columns that satisfy a condition.
A copy of l
with all elements for which the cond
function returned TRUE
skipped.
Pawel Cichosz <p.cichosz@elka.pw.edu.pl>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.