get_poisson_observations {hubeau} | R Documentation |
Retrieve data from API "Poisson"
Description
Available endpoint:
-
get_poisson_observations
retrieves data of scientific fishery operations
See the API documentation for available filter parameters: https://hubeau.eaufrance.fr/page/api-poisson
Usage
get_poisson_observations(...)
get_poisson_indicateurs(...)
get_poisson_operations(...)
get_poisson_stations(...)
Arguments
... |
parameters of the queries and their values in the format
|
Value
A tibble::tibble with one row by record and one column by field.
Examples
## Not run:
# Get the endpoints available for the API "Poisson"
list_endpoints(api = "poisson")
# List the stations available in Brest
get_poisson_stations(libelle_commune = "Brest")
# List the operations available in Brest
get_poisson_operations(libelle_commune = "Brest")
# List the indicators available in Brest
get_poisson_indicateurs(libelle_commune = "Brest")
# Get the query parameters for the requested API/endpoint
list_params(api = "poisson",
endpoint = "observations")
# Retrieve selected fields on a river fish sampled in Brest
library(dplyr)
fields <- c("code_operation",
"date_operation",
"libelle_point_prelevement_aspe",
"effectif_lot",
"code_alternatif_taxon")
brest_fishes <- get_poisson_observations(
list(
libelle_commune = "Brest",
fields = fields
)
) %>%
group_by_at(vars(-effectif_lot)) %>%
summarise(nb_individals = sum(effectif_lot))
brest_fishes
## End(Not run)
[Package hubeau version 0.5.0 Index]