knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
library(fishobspgr)

fishobspgr

Lifecycle: experimental R-CMD-check Codecov test coverage License: MIT

fishobspgr is an R package that uses the pgfeatureserv package to query BC fish observation and fish passage web APIS.

Installation

You can install the development version of fishobspgr from GitHub with:

# install.packages("devtools")
devtools::install_github("poissonconsulting/fishobspgr")

Introduction

Get Information on Collections

Get information about the observation collections, passage collections or a collection's properties:

Query a Collection

Query features from a observation collection or passage collection:

Demonstration

Query fish observation events from 'CLAY' watershed group with species code 'CO'.

collection_id <- "bcfishobs.fiss_fish_obsrvtn_events_sp"
filter <- list(species_code = "CO", watershed_group_code = "CLAY")

x <- fop_query_collection_observation(collection_id, filter = filter)
x[1:5, 1:5]

Code of Conduct

Please note that the fishobspgr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



poissonconsulting/fishobspgr documentation built on Nov. 5, 2024, 4:37 a.m.