Separate Braun-Blanquet abundance-cover from sociability
Source:R/separate_indices.R
separate_indices.Rd
Transforms strings of Braun-Blanquet indices with sociability, in a vector of two values, separating the cover-abundance index from the sociability index.
Value
The function returns a vector
with two components, the first one with the abundance-cover index, and the second one with the sociability index.
For the special case of the "+" index, the function returns "c("+", 1)".
For any other cases of single symbols (e.g. "r", "(+)", "(x)"), the function returns NA
for the sociability value.
Details
This function is intended to be used only with relevés using Braun-Blanquet sociability indices, i.e. using "OBBsoc", "OBBsoX", "EBBsoc" or "EBBsoX" scales (see releve_scale
function).
The use of this function with other scales might give inappropriate results (e.g. this function interprets "+" to have sociability value of "1", even if this is not recorded in the relevé, because such sociability is usually omitted).
Author
Tiago Monteiro-Henriques. E-mail: tmh.dev@icloud.com.