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, file_cod = "carcasses.shp"). Other components are automatically searched for and processed if available.

unitCol

name of column with turbine IDs. Column name and turbine IDs must match those of the data_layout and file_turbine used in the call to initLayout.

quiet

boolean for directing the function to print calculation progress updates and messages to the console. This should be set to FALSE unless you know clearly why you want to turn off the messaging.

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.


[Package dwp version 1.1 Index]