write_marxan_puvspr.dat_input_file: Write marxan puvspr input file

write_marxan_puvspr.dat_input_fileR Documentation

Write marxan puvspr input file

Description

Write planning unit vs. species input file (puvspr.dat).

Usage

write_marxan_puvspr.dat_input_file(spp_PU_amount_table)

Arguments

spp_PU_amount_table

A data frame of species IDs vs planning unit IDs

Details

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.

Value

nothing.

Examples

## 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)

langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.