View source: R/Obs_v_CentCount.R
Obs_v_CentCount | R Documentation |
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
Obs_v_CentCount(
Observations,
Obs_Shape,
CentCount,
SPP_lookup,
Behaviour = "All",
Boundary_Buffer
)
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 |
A data frame. Summaries of the cent count and observations
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.