Giter Club home page Giter Club logo

fishbc's Introduction

fishbc

Lifecycle: stable R-CMD-check codecov License: CCBY4 CRAN status CRAN downloads

Introduction

fishbc is an R package that provides provides raw and curated data on the codes, classification and conservation status of freshwater fishes in British Columbia. Marine fishes will be added in a future release. It also include raw fish codes for BC Conservation Data Centre and the Government of Alberta.

It contains information licensed under the Open Government Licence – British Columbia and the Open Government Licence - Alberta

Installation

To install the latest release from CRAN

install.packages("fishbc")

To install the latest development version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/fishbc")

Demonstration

Get the curated freshwater fish of BC fish codes.

library(tibble) # for tidy printing
fishbc::freshwaterfish
#> # A tibble: 161 × 18
#>    Code  CommonName  Class Order Family Genus Species Subspecies Species2 Extant
#>    <chr> <chr>       <chr> <chr> <chr>  <chr> <chr>   <chr>      <chr>    <lgl> 
#>  1 AF    All Fish    <NA>  <NA>  <NA>   <NA>  <NA>    <NA>       <NA>     TRUE  
#>  2 SP    Fish Unide… <NA>  <NA>  <NA>   <NA>  <NA>    <NA>       <NA>     TRUE  
#>  3 SG    Sturgeon (… Acti… Acip… Acipe… Acip… <NA>    <NA>       <NA>     TRUE  
#>  4 GSG   Green Stur… Acti… Acip… Acipe… Acip… mediro… <NA>       <NA>     TRUE  
#>  5 WSG   White Stur… Acti… Acip… Acipe… Acip… transm… <NA>       <NA>     TRUE  
#>  6 SH    American S… Acti… Clup… Clupe… Alosa sapidi… <NA>       <NA>     TRUE  
#>  7 SU    Sucker (Ge… Acti… Cypr… Catos… <NA>  <NA>    <NA>       <NA>     TRUE  
#>  8 LSU   Longnose S… Acti… Cypr… Catos… Cato… catost… <NA>       <NA>     TRUE  
#>  9 BSU   Bridgelip … Acti… Cypr… Catos… Cato… columb… <NA>       <NA>     TRUE  
#> 10 WSU   White Suck… Acti… Cypr… Catos… Cato… commer… <NA>       <NA>     TRUE  
#> # ℹ 151 more rows
#> # ℹ 8 more variables: Native <lgl>, Marine <lgl>, Yellow <lgl>, Blue <lgl>,
#> #   Red <lgl>, CDCode <chr>, ABCode <chr>, Ktunaxa <chr>

Get the common names for fish codes.

fishbc::fbc_common_name(c("AF", "WSG", NA, "AF", "NOTACODE"))
#> [1] "All Fish"       "White Sturgeon" NA               "All Fish"      
#> [5] NA

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

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

fishbc's People

Contributors

evanamiesgalonski avatar joethorley avatar nadinehussein avatar newgraphenvironment avatar smnorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fishbc's Issues

species_id

Thanks for publishing this, it is too bad it is not available via the Data Catalogue. Going forward, I'll grab WHSE_FISH.SPECIES_CD from this csv.

To make things a bit easier when querying by species in postgres, it would be nice to have a species_id column. I see there is already an integer column in https://github.com/poissonconsulting/fishbc/blob/master/data-raw/whse_fish_species_cd/whse_fish_species_cd.csv, it just lacks a name in the header. Would it be reasonable to label this column as species_id and use it as the primary key?

`cdc.csv` not up to date with BC Conservation Data Centre (CDC) fish data

The Bug

The data in cdc.csv is not up to date with the BC Conservation Data Centre (CDC).

A Reprex

Using Oncorhynchus nerka as an example, in the CDC database Oncorhynchus nerka and many of its populations have a COSEWIC status (screenshot 1), but this is not present in cdc.csv (screenshot 2).

Other information is not up to date either, including review dates and Provincial statuses, so this makes me think the cdc.csv just hasn't been updated in a while (and github says it hasn't been edited in 4 years). Any guidance on an update workflow would be much appreciated. Thanks

Screen Shot 2024-04-07 at 3 10 10 PM

Screen Shot 2024-04-07 at 3 15 27 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.