pOverA: A filter function to filter according to the proportion of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/all.R

Description

A function that returns a function with values for A, p and na.rm bound to the specified values. The function takes a single vector, x, as an argument. When the returned function is evaluated it returns TRUE if the proportion of values in x that are larger than A is at least p.

Usage

1
pOverA(p=0.05, A=100, na.rm=TRUE)

Arguments

A

The value to be exceeded.

p

The proportion that need to exceed A for TRUE to be returned.

na.rm

If TRUE then NA's are removed.

Value

pOverA returns a function with bindings for A, p and na.rm. This function evaluates to TRUE if the proportion of values in x that are larger than A exceeds p.

Author(s)

R. Gentleman

See Also

cv

Examples

1
2
3
  ff<- pOverA(p=.1, 10)
  ff(1:20)
  ff(1:5)


genefilter documentation built on May 20, 2017, 9:50 p.m.
Search within the genefilter package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.