kOverA: A filter function for k elements larger than A.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/all.R

Description

kOverA returns a filter function with bindings for k and A. This function evaluates to TRUE if at least k of the arguments elements are larger than A.

Usage

1
kOverA(k, A=100, na.rm=TRUE)

Arguments

A

The value you want to exceed.

k

The number of elements that have to exceed A.

na.rm

If set to TRUE any NA's will be removed.

Value

A function with bindings for A and k.

Author(s)

R. Gentleman

See Also

pOverA

Examples

1
2
3
   fg <- kOverA(5, 100)
   fg(90:100)
   fg(98:110)

genefilter documentation built on Nov. 17, 2017, 12:46 p.m.