Obs_v_CentCount: Summarise observations versus Cent Count

View source: R/Obs_v_CentCount.R

Obs_v_CentCountR Documentation

Summarise observations versus Cent Count

Description

This will take the observation spreadsheet, clip it to a boundary, summarize the information by species and then compare. Useful for quick Observation spreadsheet checks

Usage

Obs_v_CentCount(
  Observations,
  Obs_Shape,
  CentCount,
  SPP_lookup,
  Behaviour = "All",
  Boundary_Buffer
)

Arguments

Observations

A data frame or tibble. The observation spreadsheet to be opened and compared

Obs_Shape

Observations opened as an 'sf' object

CentCount

the CentCount as an sf object

SPP_lookup

The species lookup spreadsheet opened as a data frame. This is normally found at "R:/Overhead/HA17000 - R Code/5 - Bootstrap_Shiny/Hidef_bootstrap/data/Species_Lookup.xlsx"

Behaviour

One of "Sitting", "Flying" or "All". The behaviour associated with the CentCount to be summarized.

Boundary_Buffer

The boundary as an "sf" object that encompasses all the observations in the cent count

Value

A data frame. Summaries of the cent count and observations

Examples

Observations <- openxlsx::read.xlsx("D:/TEMP/19_SG23_HiDef_Zone85_M12_S01_alldays_19_Observations.xlsx")
Obs_Shape <- sf::st_as_sf(Observations,coords=c("Latitude","Longitude"),crs=4326)
CentCount <- sf::st_read("D:/TEMP/Zone85_M12_S01_D01_19_Output.shp")
SPP_lookup <- openxlsx::read.xlsx("R:/Overhead/HA17000 - R Code/5 - Bootstrap_Shiny/Hidef_bootstrap/data/Species_Lookup.xlsx")
Boundary_Buffer <- sf::st_read("D:/TEMP/Development_area_4kmBuffer_WGS84.shp")
Output <- Obs_v_CentCount(Observations,Obs_Shape,CentCount,SPP_lookup,Behaviour="All",Boundary_Buffer)

HiDef-Aerial-Surveying/HiDEF documentation built on Nov. 21, 2023, 5:54 a.m.