Description Usage Arguments Details Value
View source: R/opt_across_sites_df.R
Select the sites that will maximize the number of present species
1 | opt_across_sites_df(numbersites, data, destination = NULL)
|
numbersites |
the number of sites to select |
data |
a presence/absence matrix with sites as rows and species as columns |
destination |
directory, including file name with .csv suffix, to which a .csv of solutions will be saved |
This solves the maximum coverage problem. Given a matrix of presence/absence data for all sites, this picks the best combination of a user-defined-size subset of those sites to maximize the amount of "presence" across the selected sites.
WARNING: Because this considers every possible combination in a wildly inefficient way, it gets out-of-hand very quickly. For example, picking the best 6 sites out of 27 total requires ~296000 computations.
sorted list of selected sites with accompanying scores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.