opt_across_sites_df: Select the sites that will maximize the number of present...

Description Usage Arguments Details Value

View source: R/opt_across_sites_df.R

Description

Select the sites that will maximize the number of present species

Usage

1
opt_across_sites_df(numbersites, data, destination = NULL)

Arguments

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

Details

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.

Value

sorted list of selected sites with accompanying scores


pmckenz1/mcpdiversity documentation built on May 25, 2019, 9:25 a.m.