CalcDistToRoosts: Calculate the distance from fields to goose roosts

Description Usage Arguments Value

Description

Calculate the distance from fields to goose roosts (in this case) Using the centroids from the polyref file distances can be calculated outside of ALMaSS.

Usage

1
2
CalcDistToRoosts(roost = NULL, fields = NULL, fieldobs = NULL,
  polyref = NULL, species = NULL)

Arguments

roost

data.table The GooseRoosts.txt file

fields

data.table If fieldobs = FALSE then the GooseFieldForageData.txt file otherwise a data.table with field observations converted to ALMaSS coordinates using the UtmToAlmass function.

fieldobs

logical If TRUE then input is fieldobservations otherwise output from ALMaSS simulations

polyref

data.table The object with the polyref file (only if fieldobs = FALSE)

species

character A vector of species names for which the distances should be calculated for. Either 'Barnacle', 'Pinkfoot' or 'Greylag'

Value

data.table A data.table with the polyrefnumber or if fieldobs then PolyID, distances for each roost and a column with the shortest distance.


LDalby/ralmass documentation built on May 8, 2019, 5:48 p.m.