Ir al contenido

This function takes a data frame or tibble and groups it by neighbor species (especie_vecina). For each neighbor species, the function calculates the number of plots where each species has been recorded, as well as several statistics for the neighbor species: the mean, standard error, minimum, and maximum abundance of the neighbor species in the plots where it is present.

Uso

neighborSpecies_stats(data)

Argumentos

data

A data frame or tibble containing the data to be summarized.

Valor

A tibble with the following columns:

  • especie_vecina: The grouping variable (neighbor species).

  • ab_mean: The mean abundance of the neighbor species.

  • ab_se: The standard error of the mean abundance.

  • ab_min: The minimum abundance of the neighbor species.

  • ab_max: The maximum abundance of the neighbor species.

  • present_at: The count of plots where each neighbor species is recorded.

  • present_at_per: The percentage of the sampled plots (individuo) where each neighbor species is recorded.