Skip to contents

This function reads in and summarises all the .rdata files that are output by the occDetModel in sparta.

Usage

summarise_occDet(input_dir, region = NULL, verbose = TRUE)

Arguments

input_dir

The directory where all the .rdata files are located. This will be the same as the output_dir arguement given to occDetModel in sparta when creating the output.

region

If the model output contains regional estimates specify the region name here to extract estimates from that region only (e.g."ENGLAND"). If NULL the estimate based on all sites will be used instead.

verbose

If TRUE then progress is printed to screen.

Value

A data.frame. In each row we have the year, the species and the mean of the posterior for the predicted proportion of sites occupied.