write_marxan_puvspr.dat_input_file | R Documentation |
Write planning unit vs. species input file (puvspr.dat).
write_marxan_puvspr.dat_input_file(spp_PU_amount_table)
spp_PU_amount_table |
A data frame of species IDs vs planning unit IDs |
The spp_PU_amount_table is expected to have 3 columns called (in left to
right order) "species",
"pu", and "amount". Marxan requires this table to be sorted in increasing
order on the planning unit column. I don't think the order within planning
unit matters on the
other columns. See source code for the test function
gen_random_spp_PU_amount_table
for an example of creating
this table.
nothing.
## Not run: num_PUs = 100 num_spp = 3 spp_PU_amount_table = gen_random_spp_PU_amount_table (num_PUs, num_spp) write_marxan_puvspr.dat_input_file (spp_PU_amount_table) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.