Get species with estimated probabilities of presence highest for each group. Same thing with lowest probabilities.

max_min_species_group(
  list_theta_path,
  stars_pixels_group,
  nb_top_species = 20,
  save_csv = TRUE
)

Arguments

list_theta_path

character vector. full path to Tiff files containing species probabilities of presence to considers.

stars_pixels_group

stars object. each pixel contains values of its group number.

nb_top_species

int. Number of species to display for each group, for lists of lowest and highest probabilities, default is 20.

save_csv

boolean. Allows to save return in output folder in .csv file, default is TRUE.

Value

dataframe. For each group, species name with highest probabilities of presence, mean probabilities, sd probabilities. Same for species with lowest probabilities of presence.