readCarcass {dwp} | R Documentation |
Import Carcass Observations Locations from Shape Files
Description
Carcass coordiates (x, y) and turbine IDs are read using st_read
and formatted for adding to rings
data structures for analysis.
Usage
readCarcass(file_cod, unitCol = "turbine", quiet = FALSE)
Arguments
file_cod |
name of the file with carcass observation data. Currently, the
function requires a shape file, which gives the carcass locations on the same
coordinate system that is used for the turbines. The geometry is a simple
features points file, consisting of at least the three mandatory files standard
components (.shp, .shx, .dbf) stored in the same directory. Only the name of the
.shp is required (for example, |
unitCol |
name of column with turbine IDs. Column name and turbine IDs
must match those of the |
quiet |
boolean for directing the function to print calculation progress
updates and messages to the console. This should be set to |
Value
a shapeCarcass
object, which is a list with $carcasses
,
which is a sf
representation of the shape file file_cod
data;
$unitCol
, which is the name of the unit column; and $ncarc
, which
is a vector of carcass counts at the turbines listed in unitCol
. The
elements of the $ncarc
are named by turbines at which they were found.