Trims a phytosociological table using the given 'constancy' range.
Usage
select_taxa(m, const = c(0, 100), min.pres = NULL)
Arguments
- m
A
matrix
, i.e. a phytosociological table of 0s (absences) and 1s (presences), where rows correspond to taxa and columns correspond to relevés.- const
A
vector
with two numeric values, which will be used as minimum (the first value) and maximum (the second value) 'constancy' values to trim tablem
.- min.pres
A
numeric
integer giving, optionally, the minimum number presences of each taxon (in all relevés). If provided, it overrides the 'constancy' range.
Value
A list
with the following components:
- remo.rel
The indices of the removed relevé(s).
- remo.sp
The indices of the removed taxon(taxa).
- m.select
The trimmed table.
Details
The function accepts a phytosociological table (m
), and minimum and maximum 'constancy' values (const
). It returns a trimmed phytosociological table, removing taxa outside the given 'constancy' range and removing relevés that become empty. Optionally, a minimum number of presences (in relevés) might be used (min.pres
) instead of the 'constancy' range.
Author
Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.