Skip to contents

top_pct returns the vector positions of the largest elements collectively comprising a given percentage more of the vector sum. This function helps perform the bottom_1pct_rule when selecting the AOO grid by identifying grid positions to keep.

Usage

top_pct(v, pct = 99)

Arguments

v

A numeric vector.

pct

percent of area to drop

Value

a numeric vector indicating the indeces of the elements to keep.

References

IUCN (2024). Guidelines for the application of IUCN Red List of Ecosystems Categories and Criteria, Version 2.0. Keith, D.A., Ferrer-Paris, J.R., Ghoraba, S.M.M., Henriksen, S., Monyeki, M., Murray, N.J., Nicholson, E., Rowland, J., Skowno, A., Slingsby, J.A., Storeng, A.B., Valderrábano, M. & Zager, I. (Eds.). Gland, Switzerland: IUCN. ix + 94pp. Available at the following web site: https://iucnrle.org/

See also

Other AOO functions: createGrid(), getAOO(), jplot(), makeAOOGrid()

Author

Aniko B. Toth anikobtoth@gmail.com