pOverA | R Documentation |
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
.
pOverA(p=0.05, A=100, na.rm=TRUE)
A |
The value to be exceeded. |
p |
The proportion that need to exceed |
na.rm |
If |
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
.
R. Gentleman
cv
ff<- pOverA(p=.1, 10)
ff(1:20)
ff(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.