skip.val: Skip vector elements equal to a value

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/r-utility-skip.R

Description

This function skips all vector or list elements that are equal to a given value. 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.

Usage

1
skip.val(l, val)

Arguments

l

an input vector or list

val

a value that should be skipped

Details

All elements of l are compared to value and those that turn out equal are skipped.

Value

A copy of l with all elements equal val skipped.

Author(s)

Pawel Cichosz <p.cichosz@elka.pw.edu.pl>

See Also

skip.cond

Examples

1
2
3
4
5
skip.val(1:10, 3)
skip.val(as.list(1:10), 3)

data(weather, package="dmr.data")
skip.val(weather$outlook, "rainy")

42n4/dmr.util documentation built on May 20, 2019, 2:02 p.m.