R/max_min_species_group.R
max_min_species_group.RdGet 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
)character vector. full path to Tiff files containing species probabilities of presence to considers.
stars object. each pixel contains values of its group number.
int. Number of species to display for each group, for lists of lowest and highest probabilities, default is 20.
boolean. Allows to save return in output folder in .csv file, default is TRUE.
dataframe. For each group, species name with highest probabilities of presence, mean probabilities, sd probabilities. Same for species with lowest probabilities of presence.