diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 9c3a142..d8aeb54 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,22 +1,19 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +# +# NOTE: This workflow is overkill for most R packages and +# check-standard.yaml is likely a better choice. +# usethis::use_github_action("check-standard") will install it. on: push: - branches: - - main - - master - - dev + branches: [main, master] pull_request: - branches: - - main - - master - - dev - schedule: - - cron: '0 8 * * 0' + branches: [main, master] name: R-CMD-check jobs: R-CMD-check: - if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.os }} (${{ matrix.config.r }}) @@ -25,89 +22,42 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest, r: 'release'} + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} - - {os: ubuntu-latest, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - - {os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - - {os: ubuntu-latest, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - - {os: ubuntu-latest, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - - {os: ubuntu-latest, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} - - {os: ubuntu-latest, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} + # Use 3.6 to trigger usage of RTools35 + - {os: windows-latest, r: '3.6'} + # use 4.1 to check with rtools40's older compiler + - {os: windows-latest, r: '4.1'} + + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} + - {os: ubuntu-latest, r: 'oldrel-2'} + - {os: ubuntu-latest, r: 'oldrel-3'} + - {os: ubuntu-latest, r: 'oldrel-4'} env: - R_REMOTES_NO_ERRORS_FROM_WARNINGS: true - RSPM: ${{ matrix.config.rspm }} GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/setup-r@master - with: - r-version: ${{ matrix.config.r }} - - - uses: r-lib/actions/setup-pandoc@master + - uses: actions/checkout@v4 - - name: Query dependencies - run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") - shell: Rscript {0} + - uses: r-lib/actions/setup-pandoc@v2 - - name: Cache R packages - if: runner.os != 'Windows' - uses: actions/cache@v2 + - uses: r-lib/actions/setup-r@v2 with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- - - - name: Install system dependencies - if: runner.os == 'Linux' - run: | - while read -r cmd - do - eval sudo $cmd - done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))') - - - name: Install dependencies - run: | - remotes::install_deps(dependencies = TRUE) - remotes::install_cran("rcmdcheck") - shell: Rscript {0} - - - name: Session info - run: | - options(width = 100) - pkgs <- installed.packages()[, "Package"] - sessioninfo::session_info(pkgs, include_base = TRUE) - shell: Rscript {0} - - - name: Check - env: - _R_CHECK_CRAN_INCOMING_REMOTE_: false - run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check") - shell: Rscript {0} - - - name: Show testthat output - if: always() - run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true - shell: bash + r-version: ${{ matrix.config.r }} + http-user-agent: ${{ matrix.config.http-user-agent }} + use-public-rspm: true - - name: Upload check results - if: failure() - uses: actions/upload-artifact@master + - uses: r-lib/actions/setup-r-dependencies@v2 with: - name: ${{ runner.os }}-r${{ matrix.config.r }}-results - path: check + extra-packages: any::rcmdcheck + needs: check - - name: action-slack - if: failure() - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - uses: 8398a7/action-slack@v3.0.0 + - uses: r-lib/actions/check-r-package@v2 with: - status: ${{ job.status }} - author_name: "github action: ${{github.workflow}}" - fields: repo, ref, commit, author, message + upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index b477c65..0000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,49 +0,0 @@ -on: - push: - branches: - - main - - master - pull_request: - branches: - - main - - master - -name: coverage - -jobs: - coverage: - if: "!contains(github.event.head_commit.message, 'skip ci')" - runs-on: macOS-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/setup-r@master - - - uses: r-lib/actions/setup-pandoc@master - - - name: Query dependencies - run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") - shell: Rscript {0} - - - name: Cache R packages - uses: actions/cache@v2 - with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- - - - name: Install dependencies - run: | - install.packages(c("remotes")) - remotes::install_deps(dependencies = TRUE) - remotes::install_cran("covr") - shell: Rscript {0} - - - name: Test coverage - run: covr::codecov() - shell: Rscript {0} diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index a539056..a7276e8 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -1,59 +1,48 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: - branches: - - main - - master + branches: [main, master] + pull_request: + branches: [main, master] + release: + types: [published] + workflow_dispatch: name: pkgdown jobs: pkgdown: - if: "!contains(github.event.head_commit.message, 'skip ci')" - runs-on: macOS-latest + runs-on: ubuntu-latest + # Only restrict concurrency for non-PR jobs + concurrency: + group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: r-lib/actions/setup-r@master + - uses: r-lib/actions/setup-pandoc@v2 - - uses: r-lib/actions/setup-pandoc@master - - - name: Query dependencies - run: | - install.packages('remotes') - saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) - writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") - shell: Rscript {0} + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true - - name: Cache R packages - uses: actions/cache@v2 + - uses: r-lib/actions/setup-r-dependencies@v2 with: - path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- + extra-packages: any::pkgdown, local::. + needs: website - - name: Install dependencies - run: | - remotes::install_deps(dependencies = TRUE) - remotes::install_dev("pkgdown") + - name: Build site + run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0} - - name: Install package - run: R CMD INSTALL . - - - name: Deploy package - run: | - git config --local user.email "actions@github.com" - git config --local user.name "GitHub Actions" - Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' - - - name: action-slack - if: failure() - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - uses: 8398a7/action-slack@v3.0.0 + - name: Deploy to GitHub pages 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4.5.0 with: - status: ${{ job.status }} - author_name: "github action: pkgdown" - fields: repo, workflow, commit, message, author, action + clean: false + branch: gh-pages + folder: docs diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml new file mode 100644 index 0000000..21b8a93 --- /dev/null +++ b/.github/workflows/test-coverage.yaml @@ -0,0 +1,50 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: test-coverage + +jobs: + test-coverage: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::covr + needs: coverage + + - name: Test coverage + run: | + covr::codecov( + quiet = FALSE, + clean = FALSE, + install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") + ) + shell: Rscript {0} + + - name: Show testthat output + if: always() + run: | + ## -------------------------------------------------------------------- + find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true + shell: bash + + - name: Upload test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: coverage-test-failures + path: ${{ runner.temp }}/package diff --git a/DESCRIPTION b/DESCRIPTION index c0aa569..838faaa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -50,6 +50,7 @@ Depends: Suggests: chk, testthat (>= 3.0.0), + tibble, covr Encoding: UTF-8 Language: en-US diff --git a/R/sysdata.rda b/R/sysdata.rda index 34e1613..33756a0 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/README.Rmd b/README.Rmd index 29f7bdd..c7512b5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,13 +17,11 @@ knitr::opts_chunk$set( [![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable) -[![R build status](https://github.com/poissonconsulting/fishbc/workflows/R-CMD-check/badge.svg)](https://github.com/poissonconsulting/fishbc/actions) +[![R-CMD-check](https://github.com/poissonconsulting/fishbc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/poissonconsulting/fishbc/actions/workflows/R-CMD-check.yaml) [![codecov](https://codecov.io/gh/poissonconsulting/fishbc/branch/master/graph/badge.svg?token=2EvrLVvDcZ)](https://codecov.io/gh/poissonconsulting/fishbc) [![License: CCBY4](https://img.shields.io/badge/License-CCBY4-green.svg)](https://creativecommons.org/licenses/by/4.0/) [![CRAN status](https://www.r-pkg.org/badges/version/fishbc)](https://CRAN.R-project.org/package=fishbc) ![CRAN downloads](https://cranlogs.r-pkg.org/badges/fishbc) - -[![R-CMD-check](https://github.com/poissonconsulting/fishbc/workflows/R-CMD-check/badge.svg)](https://github.com/poissonconsulting/fishbc/actions) ## Introduction diff --git a/README.md b/README.md index cf30a6a..375dcad 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,13 @@ [![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable) -[![R build -status](https://github.com/poissonconsulting/fishbc/workflows/R-CMD-check/badge.svg)](https://github.com/poissonconsulting/fishbc/actions) +[![R-CMD-check](https://github.com/poissonconsulting/fishbc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/poissonconsulting/fishbc/actions/workflows/R-CMD-check.yaml) [![codecov](https://codecov.io/gh/poissonconsulting/fishbc/branch/master/graph/badge.svg?token=2EvrLVvDcZ)](https://codecov.io/gh/poissonconsulting/fishbc) [![License: CCBY4](https://img.shields.io/badge/License-CCBY4-green.svg)](https://creativecommons.org/licenses/by/4.0/) [![CRAN status](https://www.r-pkg.org/badges/version/fishbc)](https://CRAN.R-project.org/package=fishbc) ![CRAN downloads](https://cranlogs.r-pkg.org/badges/fishbc) - ## Introduction @@ -55,21 +53,22 @@ Get the curated freshwater fish of BC fish codes. ``` r library(tibble) # for tidy printing fishbc::freshwaterfish -#> # A tibble: 161 x 17 -#> Code CommonName Class Order Family Genus Species Subspecies Species2 Extant -#> -#> 1 AF All Fish TRUE -#> 2 SP Fish Unid… TRUE -#> 3 SG Sturgeon … Acti… Acip… Acipe… Acip… TRUE -#> 4 GSG Green Stu… Acti… Acip… Acipe… Acip… mediro… TRUE -#> 5 WSG White Stu… Acti… Acip… Acipe… Acip… transm… TRUE -#> 6 SH American … Acti… Clup… Clupe… Alosa sapidi… TRUE -#> 7 SU Sucker (G… Acti… Cypr… Catos… TRUE -#> 8 LSU Longnose … Acti… Cypr… Catos… Cato… catost… TRUE -#> 9 BSU Bridgelip… Acti… Cypr… Catos… Cato… columb… TRUE -#> 10 WSU White Suc… Acti… Cypr… Catos… Cato… commer… TRUE -#> # … with 151 more rows, and 7 more variables: Native , Marine , -#> # Yellow , Blue , Red , CDCode , ABCode +#> # A tibble: 161 × 18 +#> Code CommonName Class Order Family Genus Species Subspecies Species2 Extant +#> +#> 1 AF All Fish TRUE +#> 2 SP Fish Unide… TRUE +#> 3 SG Sturgeon (… Acti… Acip… Acipe… Acip… TRUE +#> 4 GSG Green Stur… Acti… Acip… Acipe… Acip… mediro… TRUE +#> 5 WSG White Stur… Acti… Acip… Acipe… Acip… transm… TRUE +#> 6 SH American S… Acti… Clup… Clupe… Alosa sapidi… TRUE +#> 7 SU Sucker (Ge… Acti… Cypr… Catos… TRUE +#> 8 LSU Longnose S… Acti… Cypr… Catos… Cato… catost… TRUE +#> 9 BSU Bridgelip … Acti… Cypr… Catos… Cato… columb… TRUE +#> 10 WSU White Suck… Acti… Cypr… Catos… Cato… commer… TRUE +#> # ℹ 151 more rows +#> # ℹ 8 more variables: Native , Marine , Yellow , Blue , +#> # Red , CDCode , ABCode , Ktunaxa ``` Get the common names for fish codes. diff --git a/data-raw/data-raw.R b/data-raw/data-raw.R index 174c1c3..b2e1b10 100644 --- a/data-raw/data-raw.R +++ b/data-raw/data-raw.R @@ -16,6 +16,14 @@ whse_fish_species_cd$SPECIES_ID <- as.integer(whse_fish_species_cd$SPECIES_ID) # remove marked utf-8 character cdc$`COSEWIC Comments` <- gsub("†", "", cdc$`COSEWIC Comments`) +chk::check_key(freshwaterfish, "Code") +chk::check_key(cdc, "Species Code") +chk::check_key(ab, "Species Code") +chk::check_key(whse_fish_species_cd, "CODE") + +chk::chk_join(freshwaterfish[!is.na(freshwaterfish$ABCode),], ab, by = c("ABCode" = "Species Code")) +chk::chk_join(freshwaterfish[!is.na(freshwaterfish$CDCode),], cdc, by = c("CDCode" = "Species Code")) + usethis::use_data(cdc, overwrite = TRUE) usethis::use_data(freshwaterfish, overwrite = TRUE) usethis::use_data(whse_fish_species_cd, overwrite = TRUE, internal = TRUE) diff --git a/data-raw/freshwaterfish/freshwaterfish.csv b/data-raw/freshwaterfish/freshwaterfish.csv index 56a4bfa..656aed5 100644 --- a/data-raw/freshwaterfish/freshwaterfish.csv +++ b/data-raw/freshwaterfish/freshwaterfish.csv @@ -1,166 +1,3 @@ -Code,CommonName,Class,Order,Family,Genus,Species,Subspecies,Species2,Extant,Native,Marine,Yellow,Blue,Red,CDCode -AF,All Fish,NA,NA,NA,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA -SP,Fish Unidentified Species,NA,NA,NA,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA -SG,Sturgeon (General),Actinopterygii,Acipenseriformes,Acipenseridae,Acipenser,NA,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,TRUE,NA -GSG,Green Sturgeon,Actinopterygii,Acipenseriformes,Acipenseridae,Acipenser,medirostris,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-ACME -WSG,White Sturgeon,Actinopterygii,Acipenseriformes,Acipenseridae,Acipenser,transmontanus,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,F-ACTR -SH,American Shad,Actinopterygii,Clupeiformes,Clupeidae,Alosa,sapidissima,NA,NA,TRUE,FALSE,TRUE,FALSE,FALSE,FALSE,F-ALSA -SU,Sucker (General),Actinopterygii,Cypriniformes,Catostomidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,TRUE,TRUE,NA -LSU,Longnose Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,catostomus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CACT -BSU,Bridgelip Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,columbianus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CACO -WSU,White Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,commersonii,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CACM -CSU,Largescale Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,macrocheilus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CAMA -MSU,Northern Mountain Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,platyrhynchus,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-CAPL -SSU,Salish Sucker,Actinopterygii,Cypriniformes,Catostomidae,Catostomus,sp. 4,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-CASP-04 -OWF,Oriental Weatherfish,Actinopterygii,Cypriniformes,Cobitidae,Misgurnus,anguillicaudatus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -C,Minnow (General),Actinopterygii,Cypriniformes,Cyprinidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,TRUE,FALSE,NA -CBC,Chub (General),Actinopterygii,Cypriniformes,Cyprinidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,TRUE,NA -CPG,Carp (General),Actinopterygii,Cypriniformes,Cyprinidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,TRUE,TRUE,NA -DC,Dace (General),Actinopterygii,Cypriniformes,Cyprinidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,TRUE,NA -CMC,Chiselmouth,Actinopterygii,Cypriniformes,Cyprinidae,Acrocheilus,alutaceus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-ACAL -GC,Goldfish,Actinopterygii,Cypriniformes,Cyprinidae,Carassius,auratus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-CAAU -RDC,Northern Redbelly Dace,Actinopterygii,Cypriniformes,Cyprinidae,Chrosomus,eos,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CHEO -XDC,Northern Redbelly Dace x Finescale Dace,Actinopterygii,Cypriniformes,Cyprinidae,Chrosomus,eos,NA,neogaeus,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-CHEOxCHNE -FDC,Finescale Dace,Actinopterygii,Cypriniformes,Cyprinidae,Chrosomus,neogaeus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CHNE -LKC,Lake Chub,Actinopterygii,Cypriniformes,Cyprinidae,Couesius,plumbeus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-COPL -CP,Carp,Actinopterygii,Cypriniformes,Cyprinidae,Cyprinus,carpio,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-CYCA -BMC,Brassy Minnow,Actinopterygii,Cypriniformes,Cyprinidae,Hybognathus,hankinsoni,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,F-HYHA -PDC,Northern Pearl Dace,Actinopterygii,Cypriniformes,Cyprinidae,Margariscus,margarita,NA,nachtriebi,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,NA -PCC,Peamouth Chub,Actinopterygii,Cypriniformes,Cyprinidae,Mylocheilus,caurinus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-MYCA -ESC,Emerald Shiner,Actinopterygii,Cypriniformes,Cyprinidae,Notropis,atherinoides,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,F-NOAT -STC,Spottail Shiner,Actinopterygii,Cypriniformes,Cyprinidae,Notropis,hudsonius,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-NOHU -FM,Fathead Minnow,Actinopterygii,Cypriniformes,Cyprinidae,Pimephales,promelas,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-PIPR -FHC,Flathead Chub,Actinopterygii,Cypriniformes,Cyprinidae,Platygobio,gracilis,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PLGR -NSC,Northern Pikeminnow,Actinopterygii,Cypriniformes,Cyprinidae,Ptychocheilus,oregonensis,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PTOR -LNC,Longnose Dace,Actinopterygii,Cypriniformes,Cyprinidae,Rhinichthys,cataractae,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-RHCA -NDC,Nooksack Dace,Actinopterygii,Cypriniformes,Cyprinidae,Rhinichthys,cataractae,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-RHCA-CH -LDC,Leopard Dace,Actinopterygii,Cypriniformes,Cyprinidae,Rhinichthys,falcatus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-RHFA -SDC,Speckled Dace,Actinopterygii,Cypriniformes,Cyprinidae,Rhinichthys,osculus,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-RHOS -UDC,Umatilla Dace,Actinopterygii,Cypriniformes,Cyprinidae,Rhinichthys,umatilla,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-RHUM -RSC,Redside Shiner,Actinopterygii,Cypriniformes,Cyprinidae,Richardsonius,balteatus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-RIBA -TC,Tench,Actinopterygii,Cypriniformes,Cyprinidae,Tinca,tinca,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-TITI -GAM,Mosquitofish,Actinopterygii,Cyprinodontiformes,Poeciliidae,Gambusia,affinis,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -NP,Northern Pike,Actinopterygii,Esociformes,Esocidae,Esox,lucius,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-ESLU -TMP,Tiger Muskellunge,Actinopterygii,Esociformes,Esocidae,Esox,lucius,NA,masquinongy,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,NA -BB,Burbot,Actinopterygii,Gadiformes,Gadidae,Lota,lota,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,TRUE,F-LOLO -SB,Stickleback (General),Actinopterygii,Gasterosteiformes,Gasterosteidae,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,NA -BSB,Brook Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Culaea,inconstans,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CUIN -SB3,Charlotte Unarmoured Threespine Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,aculeatus,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GAAC-01 -TSB,Threespine Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,aculeatus,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-GAAC -CSB,Unarmoured Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SB1,Balkwill Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SB11,Lake Sticklebacks,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,NA -SB2,Balkwill Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SB4,Emily Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SB5,Emily Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SBB,Priest Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SBP,Priest Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SB8,Giant Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 1,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-01 -SB10,Hadley Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 12,NA,NA,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,F-GASP-12 -SB9,Hadley Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 13,NA,NA,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,F-GASP-13 -SB14,Misty Lake Lake Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 18,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-18 -SB15,Misty Lake Stream Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 19,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-19 -SB7,Enos Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 2,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-02 -SB6,Enos Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 3,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-03 -SB13,Paxton Lake Limnetic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 4,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-04 -SB12,Paxton Lake Benthic Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Gasterosteus,sp. 5,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-GASP-05 -NSB,Ninespine Stickleback,Actinopterygii,Gasterosteiformes,Gasterosteidae,Pungitius,pungitius,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-PUPU -GE,Goldeye,Actinopterygii,Hiodontiformes,Hiodontidae,Hiodon,alosoides,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-HIAL -SM,Smelt (General),Actinopterygii,Osmeriformes,Osmeridae,NA,NA,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,TRUE,NA -SSM,Surf Smelt,Actinopterygii,Osmeriformes,Osmeridae,Hypomesus,pretiosus,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-HYPR -RSM,Rainbow Smelt,Actinopterygii,Osmeriformes,Osmeridae,Osmerus,dentex,NA,mordax,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-OSDE -LSM,Longfin Smelt,Actinopterygii,Osmeriformes,Osmeridae,Spirinchus,thaleichthys,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-SPTH -PLS,Pygmy Longfin Smelt,Actinopterygii,Osmeriformes,Osmeridae,Spirincus,sp. 1,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-SPSP-01 -EU,Eulachon,Actinopterygii,Osmeriformes,Osmeridae,Thaleichthys,pacificus,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-THPA -BS,Bass/Sunfish (General),Actinopterygii,Perciformes,Centrarchidae,NA,NA,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -PMB,Pumpkinseed,Actinopterygii,Perciformes,Centrarchidae,Lepomis,gibbosus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-LEGI -BG,Bluegill,Actinopterygii,Perciformes,Centrarchidae,Lepomis,macrochirus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-LPMA -SMB,Smallmouth Bass,Actinopterygii,Perciformes,Centrarchidae,Micropterus,dolomieui,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-MIDO -LMB,Largemouth Bass,Actinopterygii,Perciformes,Centrarchidae,Micropterus,salmoides,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-MISA -BCB,Black Crappie,Actinopterygii,Perciformes,Centrarchidae,Pomoxis,nigromaculatus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-PONI -CHMC,Blotched Snakehead,Actinopterygii,Perciformes,Channidae,Channa,maculata,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -CYAG,Shiner Perch,Actinopterygii,Perciformes,Embiotocidae,Cymatogaster,aggregata,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-CYAG -P,Perch (General),Actinopterygii,Perciformes,Percidae,NA,NA,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,NA -YP,Yellow Perch,Actinopterygii,Perciformes,Percidae,Perca,flavescens,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PEFL -WP,Walleye,Actinopterygii,Perciformes,Percidae,Sander,vitreus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-SAVI -TP,Trout-Perch,Actinopterygii,Percopsiformes,Percopsidae,Percopsis,omiscomaycus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PEOM -SA,Salmon (General),Actinopterygii,Salmoniformes,Salmonidae,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,NA -TR,Unidentifiable Trout - only fry <70mm in length,Actinopterygii,Salmoniformes,Salmonidae,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA -WF,Whitefish (General),Actinopterygii,Salmoniformes,Salmonidae,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA -CL,Cisco,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,artedi,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,F-COAR -CA,Arctic Cisco,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,autumnalis,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE,F-COAU -LW,Lake Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,clupeaformis,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-COCL -CB,Bering Cisco,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,laurettae,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA -BW,Broad Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,nasus,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-CONA -CS,Least Cisco,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,sardinella,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-COSR -DLW,Dragon Lake Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,sp,NA,NA,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -SQ,Squanga,Actinopterygii,Salmoniformes,Salmonidae,Coregonus,sp,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -AO,All Pacific Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,NA -ACT,Cutthroat Trout (Anadromous),Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,clarkii,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-ONCL -CT,Cutthroat Trout,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,clarkii,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,F-ONCL -CRS,Cutthroat/Rainbow cross,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,clarkii,NA,mykiss,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA -CCT,Coastal Cutthroat Trout,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,clarkii,clarkii,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-ONCL-CL -WCT,Westslope Cutthroat Trout,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,clarkii,lewisi,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-ONCL-LE -PK,Pink Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,gorbuscha,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ONGO -CM,Chum Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,keta,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ONKE -CO,Coho Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,kisutch,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ONKI -RB,Rainbow Trout,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,mykiss,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-ONMY -SST,Steelhead (Summer-run),Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,mykiss,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,F-ONMY -ST,Steelhead,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,mykiss,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,F-ONMY -WST,Steelhead (Winter-run),Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,mykiss,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,F-ONMY -GT,Golden Trout,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,mykiss,aguabonita,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-ONMY -KO,Kokanee,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,nerka,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,F-ONNE -SK,Sockeye Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,nerka,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ONNE -CH,Chinook Salmon,Actinopterygii,Salmoniformes,Salmonidae,Oncorhynchus,tshawytscha,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ONTS -GPW,Giant Pygmy Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Prosopium,coulterii,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PRCO-03 -PW,Pygmy Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Prosopium,coulterii,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PRCO -RW,Round Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Prosopium,cyclindraceum,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PRCY -MW,Mountain Whitefish,Actinopterygii,Salmoniformes,Salmonidae,Prosopium,williamsoni,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-PRWI -MWxRW,Mountain x Round Whitefish hybrid,Actinopterygii,Salmoniformes,Salmonidae,Prosopium,williamsoni,NA,cyclindraceum,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,NA -AS,Atlantic Salmon,Actinopterygii,Salmoniformes,Salmonidae,Salmo,salar,NA,NA,TRUE,FALSE,TRUE,FALSE,FALSE,FALSE,F-SASA -AGB,Brown Trout (Anadromous),Actinopterygii,Salmoniformes,Salmonidae,Salmo,trutta,NA,NA,TRUE,FALSE,TRUE,FALSE,FALSE,FALSE,F-SATR -GB,Brown Trout,Actinopterygii,Salmoniformes,Salmonidae,Salmo,trutta,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-SATR -SLV,Char (General),Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,NA -AC,Arctic Char,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,alpinus,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA -ABT,Bull Trout (Anadromous),Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,confluentus,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-SACO -BT,Bull Trout,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,confluentus,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-SACO -AEB,Brook Trout (Anadromous),Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,fontinalis,NA,NA,TRUE,FALSE,TRUE,FALSE,FALSE,FALSE,F-SAFO -EB,Brook Trout,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,fontinalis,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-SAFO -SPK,Splake,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,fontinalis,NA,namaycush,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -ADV,Dolly Varden (Anadromous),Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,malma,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-SAMA -DV,Dolly Varden,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,malma,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-SAMA -DVxBT,Verified DV BT hybrid,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,malma,NA,confluentus,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,NA -LT,Lake Trout,Actinopterygii,Salmoniformes,Salmonidae,Salvelinus,namaycush,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-SANA -IN,Inconnu,Actinopterygii,Salmoniformes,Salmonidae,Stenodus,leucichthys,NA,NA,TRUE,TRUE,TRUE,FALSE,TRUE,FALSE,F-STLU -GR,Arctic Grayling,Actinopterygii,Salmoniformes,Salmonidae,Thymallus,arcticus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-THAR -MG,Montana Grayling,Actinopterygii,Salmoniformes,Salmonidae,Thymallus,arcticus,montanus,NA,TRUE,TRUE,FALSE,TRUE,TRUE,TRUE,NA -CC,Sculpin (General),Actinopterygii,Scorpaeniformes,Cottidae,NA,NA,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA -CCA,Sharpnose Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Clinocottus,acuticeps,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-CLAC -CAL,Coastrange Sculpin (formerly Aleutian Sculpin),Actinopterygii,Scorpaeniformes,Cottidae,Cottus,aleuticus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-COAL -CCL,Cultus Lake Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,aleuticus,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-COSP-02 -CAS,Prickly Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,asper,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-COAS -CBA,Mottled Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,bairdi,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,NA -CMM,Malheur Mottled Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,bendirei,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -CCG,Slimy Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,cognatus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-COCO -CCN,Shorthead Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,confusus,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-COCN -CCH,Columbia Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,hubbsi,NA,NA,TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,F-COHU -CRH,Torrent Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,rhotheus,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CORH -CRI,Spoonhead Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,ricei,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-CORI -CRM,Rocky Mountain Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Cottus,sp. 9,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-COSP-04 -CLA,Staghorn Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Leptocottus,armatus,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,F-LEAR -CMT,Deepwater Sculpin,Actinopterygii,Scorpaeniformes,Cottidae,Myoxocephalus,thompsoni,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,FALSE,NA -BH,Bullhead (General),Actinopterygii,Siluriformes,Ictaluridae,Ameiurus,NA,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,NA -BKH,Black Bullhead,Actinopterygii,Siluriformes,Ictaluridae,Ameiurus,melas,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-AMME -YB,Yellow Bullhead,Actinopterygii,Siluriformes,Ictaluridae,Ameiurus,natalis,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-ICNA -BNH,Brown Bullhead,Actinopterygii,Siluriformes,Ictaluridae,Ameiurus,nebulosus,NA,NA,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,F-AMNE -L,Lamprey (General),Petromyzontida,Petromyzontiformes,NA,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,TRUE,NA -RL,River Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,ayresii,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-LAAY -LL,Cowichan Lake Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,macrostoma,NA,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-ENMA -BL,Western Brook Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,richardsoni,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-LARC -MCL,Morrison Creek Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,richardsoni,marifaga,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-LARC-01 -AL,Arctic Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,sp,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA -PL,Pacific Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,tridentata,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ENTR -======= Code,CommonName,Class,Order,Family,Genus,Species,Subspecies,Species2,Extant,Native,Marine,Yellow,Blue,Red,CDCode,ABCode AF,All Fish,NA,NA,NA,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA,ARCH SP,Fish Unidentified Species,NA,NA,NA,NA,NA,NA,NA,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,NA,ARLM @@ -322,4 +159,4 @@ LL,Cowichan Lake Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampe BL,Western Brook Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,richardsoni,NA,NA,TRUE,TRUE,FALSE,TRUE,FALSE,FALSE,F-LARC,NA MCL,Morrison Creek Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,richardsoni,marifaga,NA,TRUE,TRUE,FALSE,FALSE,FALSE,TRUE,F-LARC-01,NA AL,Arctic Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,sp,NA,NA,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE,NA,NA -PL,Pacific Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,tridentata,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ENTR,NA +PL,Pacific Lamprey,Petromyzontida,Petromyzontiformes,Petromyzontidae,Lampetra,tridentata,NA,NA,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,F-ENTR,NA \ No newline at end of file diff --git a/data/ab.rda b/data/ab.rda index 53c90b9..9e2e0a2 100644 Binary files a/data/ab.rda and b/data/ab.rda differ diff --git a/data/cdc.rda b/data/cdc.rda index 9d3ffa5..6879fda 100644 Binary files a/data/cdc.rda and b/data/cdc.rda differ diff --git a/data/freshwaterfish.rda b/data/freshwaterfish.rda index 97abeb4..3df2a75 100644 Binary files a/data/freshwaterfish.rda and b/data/freshwaterfish.rda differ diff --git a/tests/testthat.R b/tests/testthat.R index 039250c..a8d8aa7 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,4 +1,5 @@ library(testthat) library(fishbc) +library(tibble) test_check("fishbc") diff --git a/tests/testthat/_snaps/ab.md b/tests/testthat/_snaps/ab.md new file mode 100644 index 0000000..f9473bc --- /dev/null +++ b/tests/testthat/_snaps/ab.md @@ -0,0 +1,181 @@ +# ab + + Code + print(ab, width = 200, n = 200) + Output + # A tibble: 85 x 3 + `Species Common Name` + + 1 AFRICAN JEWELFISH + 2 ARCTIC CHAR + 3 ARCTIC GRAYLING + 4 ARCTIC GRAYLING (BELLY POPLN) + 5 ARCTIC LAMPREY + 6 ATHABASCA RAINBOW TROUT + 7 BRASSY MINNOW + 8 BROOK STICKLEBACK + 9 BROOK TROUT + 10 BROWN TROUT + 11 BULL TROUT + 12 BULL TROUT X BROOK TROUT HYBRID + 13 BURBOT + 14 CICHLID + 15 COHO SALMON + 16 CRUCIAN CARP + 17 CUTTHROAT TROUT + 18 CUTTHROAT TROUT X RAINBOW TROUT + 19 DEEPWATER SCULPIN + 20 DOLLY VARDEN + 21 EMERALD SHINER + 22 FATHEAD MINNOW + 23 FINESCALE DACE + 24 FLATHEAD CHUB + 25 GOLDEN TROUT + 26 GOLDEYE + 27 GOLDFISH + 28 GRASS CARP + 29 IOWA DARTER + 30 KOKANEE + 31 KOI + 32 LAKE CHUB + 33 LAKE STURGEON + 34 LAKE TROUT + 35 LAKE WHITEFISH + 36 LARGESCALE SUCKER + 37 LOGPERCH + 38 LONGNOSE DACE + 39 LONGNOSE SUCKER + 40 minnow family + 41 MOONEYE + 42 MOUNTAIN SUCKER + 43 MOUNTAIN WHITEFISH + 44 NINESPINE STICKLEBACK + 45 NORTHERN CRAYFISH + 46 NORTHERN PIKE + 47 NORTHERN PIKEMINNOW + 48 NORTHERN REDBELLY DACE + 49 NORTHERN REDBELLY DACE X FINESCALE DACE + 50 PEAMOUTH CHUB + 51 PEARL DACE + 52 PRICKLY SCULPIN + 53 PRUSSIAN CARP + 54 PYGMY WHITEFISH + 55 QUILLBACK + 56 RAINBOW TROUT + 57 REDSIDE SHINER + 58 RIVER SHINER + 59 ROCKY MOUNTAIN SCULPIN + 60 ROSY RED MINNOW + 61 ROUND WHITEFISH + 62 SAILFIN MOLLY + 63 SAUGER + 64 SEA LAMPREY + 65 SHORTHEAD REDHORSE + 66 SHORTJAW CISCO + 67 SILVER REDHORSE + 68 SLIMY SCULPIN + 69 SMALLMOUTH BASS + 70 SPLAKE + 71 SPOONHEAD SCULPIN + 72 SPOTTAIL SHINER + 73 STONECAT + 74 sucker family + 75 THREESPINE STICKLEBACK + 76 TIGER TROUT + 77 TROUT-PERCH + 78 TULLIBEE (CISCO) + 79 TULLIBEE (CISCO) X LAKE WHITEFISH + 80 WALLEYE + 81 WESTERN MOSQUITOFISH + 82 WESTERN SILVERY MINNOW + 83 WESTSLOPE CUTTHROAT TROUT + 84 WHITE SUCKER + 85 YELLOW PERCH + `Scientific Name` `Species Code` + + 1 HEMICHROMIS BIMACULATUS AFJW + 2 SALVELINUS ALPINUS ARCH + 3 THYMALLUS ARCTICUS ARGR + 4 THYMALLUS ARCTICUS MONTANUS AGMN + 5 LAMPETRA JAPONICA ARLM + 6 ONCORHYNCHUS MYKISS ARTR + 7 HYBOGNATHUS HANKINSONI BRMN + 8 CULAEA INCONSTANS BRST + 9 SALVELINUS FONTINALIS BKTR + 10 SALMO TRUTTA BNTR + 11 SALVELINUS CONFLUENTUS BLTR + 12 SALVELINUS CONFLUENTUS X SALVELINUS FONTINALIS BLBK + 13 LOTA LOTA BURB + 14 PSEUDOTROPHEUS CCHL + 15 ONCORHYNCHUS KISUTCH CHSL + 16 CARASSIUS CARIASSIUS CRCA + 17 ONCORHYNCHUS CLARKI CTTR + 18 ONCORHYNCHUS CLARKI X ONCORHYNCHUS MYKISS CRTR + 19 MYOXOCEPHALUS THOMPSONI DPSC + 20 SALVELINUS MALMA DLVR + 21 NOTROPIS ATHERINOIDES EMSH + 22 PIMEPHALES PROMELAS FTMN + 23 PHOXINUS NEOGAEUS FNDC + 24 PLATYGOBIO GRACILIS FLCH + 25 ONCORHYNCHUS AQUABONITA GLTR + 26 HIODON ALOSOIDES GOLD + 27 CARASSIUS AURATUS GOFS + 28 CTENOPHARYNGODON IDELLA GSCA + 29 ETHEOSTOMA EXILE IWDR + 30 ONCORHYNCHUS NERKA KOKA + 31 CYPRINUS CARPIO HAEMATOPTERUS KOIF + 32 COUESIUS PLUMBEUS LKCH + 33 ACIPENSER FULVESCENS LKST + 34 SALVELINUS NAMAYCUSH LKTR + 35 COREGONUS CLUPEAFORMIS LKWH + 36 CATOSTOMUS MACROCHEILUS LRSC + 37 PERCINA CAPRODES LGPR + 38 RHINICHTHYS CATARACTAE LNDC + 39 CATOSTOMUS CATOSTOMUS LNSC + 40 CYPRINIDAE FAMCYPR + 41 HIODON TERGISUS MOON + 42 CATOSTOMUS PLATYRHYNCHUS MNSC + 43 PROSOPIUM WILLIAMSONI MNWH + 44 PUNGITIUS PUNGITIUS NNST + 45 ORCONECTES VIRILIS NOCY + 46 ESOX LUCIUS NRPK + 47 PTYCHOCHEILUS OREGONENSIS NRSQ + 48 PHOXINUS EOS NRDC + 49 PHOXINUS EOS X PHOXINUS NEOGAEUS NFDC + 50 MYLCHEILUS CAURINUS PMCH + 51 MARGARISCUS MARGARITA PRDC + 52 COTTUS ASPER PRSC + 53 CARASSIUS GIBELIO PRCR + 54 PROSOPIUM COULTERI PGWH + 55 CARPIODES CYPRINUS QUIL + 56 ONCORHYNCHUS MYKISS RNTR + 57 RICHARDSONIUS BALTEATUS RDSH + 58 NOTROPIS BLENNIUS RVSH + 59 COTTUS SPP RMSC + 60 PIMEPHALES PROMELAS RRMN + 61 PROSOPIUM CYLINDRACEUM RNWH + 62 POECILIA LATIPINNA SLML + 63 STIZOSTEDION CANADENSE SAUG + 64 PETROMYZON MARINUS SLMP + 65 MOXOSTOMA MACROLEPIDOTUM SHRD + 66 COREGONUS ZENITHICUS SHCS + 67 MOXOSTOMA ANISURUM SLRD + 68 COTTUS COGNATUS SLSC + 69 MICROPTERUS DOLOMIEU SMBS + 70 SALVELINUS NAMAYCUSH X SALVELINUS FONTINALIS SPLA + 71 COTTUS RICEI SPSC + 72 NOTROPIS HUDSONIUS SPSH + 73 NOTURUS FLAVUS STON + 74 CATOSTOMIDAE FAMCATO + 75 GASTEROSTEUS ACULEATUS THST + 76 S. TRUTTA X S. FONTINALIS TGTR + 77 PERCOPSIS OMISCOMAYCUS TRPR + 78 COREGONUS ARTEDI CISC + 79 COREGONUS ARTEDI X COREGONUS CLUPEAFORMIS TLWH + 80 SANDER VITREUS WALL + 81 GAMBUSIA AFFINIS WEMO + 82 HYBOGNATHUS ARGYRITIS WSMN + 83 ONCORHYNCHUS CLARKII LEWISI WSCT + 84 CATOSTOMUS COMMERSONI WHSC + 85 PERCA FLAVESCENS YLPR + diff --git a/tests/testthat/_snaps/cdc.md b/tests/testthat/_snaps/cdc.md new file mode 100644 index 0000000..3933708 --- /dev/null +++ b/tests/testthat/_snaps/cdc.md @@ -0,0 +1,619 @@ +# cdc + + Code + print(cdc, width = 200, n = 200) + Output + # A tibble: 550 x 45 + `Scientific Name` `Scientific Name Synonyms` + + 1 Acantholiparis caecus + 2 Acantholiparis opercularis + 3 Acipenser medirostris + 4 Acipenser transmontanus + 5 Acipenser transmontanus pop. 1 + 6 Acipenser transmontanus pop. 2 + 7 Acipenser transmontanus pop. 4 + 8 Acipenser transmontanus pop. 5 + 9 Acrocheilus alutaceus + 10 Agonopsis vulsa + 11 Albatrossia pectoralis + 12 Alepisaurus ferox + 13 Alepocephalus tenebrosus + 14 Allocyttus folletti + 15 Allolumpenus hypochromus + 16 Allosmerus elongatus + 17 Alopias vulpinus + 18 Alosa sapidissima + 19 Amblyraja badia + 20 Ameiurus melas + 21 Ameiurus nebulosus + 22 Ammodytes hexapterus + 23 Amphistichus rhodoterus + 24 Anarrhichthys ocellatus + 25 Anoplagonus inermis + 26 Anoplarchus insignis + 27 Anoplarchus purpurescens + 28 Anoplogaster cornuta + 29 Anoplopoma fimbria + 30 Anotopterus nikparini + 31 Antimora microlepis + 32 Aphanopus carbo + 33 Apodichthys flavidus + 34 Apodichthys fucorum + 35 Apristurus brunneus + 36 Aptocyclus ventricosus + 37 Arctozenus risso + 38 Argyropelecus sladeni + 39 Aristostomias scintillans + 40 Artedius fenestralis + 41 Artedius harringtoni + 42 Artedius lateralis + 43 Ascelichthys rhodorus + 44 Asemichthys taylori Radulinus taylori + 45 Atheresthes stomias + 46 Atherinops affinis + 47 Atractoscion nobilis + 48 Aulorhynchus flavidus + 49 Avocettina infans + 50 Balistes polylepis + 51 Barbourisia rufa + 52 Bathophilus flemingi + 53 Bathyagonus alascanus + 54 Bathyagonus infraspinatus + 55 Bathyagonus nigripinnis + 56 Bathyagonus pentacanthus + 57 Bathylagus pacificus + 58 Bathylychnops exilis + 59 Bathymaster caeruleofasciatus + 60 Bathymaster signatus + 61 Bathyraja abyssicola + 62 Bathyraja aleutica + 63 Bathyraja interrupta + 64 Bathyraja minispinosa + 65 Bathyraja parmifera + 66 Bathyraja trachura + 67 Benthalbella dentata + 68 Benthalbella linguidens + 69 Benthodesmus pacificus + 70 Benthodesmus tenuis + 71 Blepsias bilobus + 72 Blepsias cirrhosus + 73 Bothragonus swanii + 74 Bothrocara brunneum + 75 Bothrocara molle + 76 Bothrocara pusillum + 77 Brachyistius frenatus + 78 Brama japonica + 79 Brosmophycis marginata + 80 Bryozoichthys marjorius + 81 Carassius auratus + 82 Carcharodon carcharias + 83 Careproctus cypselurus + 84 Careproctus gilberti + 85 Careproctus melanurus + 86 Careproctus oregonensis + 87 Careproctus ovigerum + 88 Caristius macropus + 89 Catostomus catostomus + 90 Catostomus columbianus + 91 Catostomus commersonii + 92 Catostomus macrocheilus + 93 Catostomus platyrhynchus + 94 Catostomus sp. 4 + 95 Caulolatilus princeps + 96 Ceratias holboelli + 97 Ceratoscopelus townsendi + 98 Cetorhinus maximus + 99 Chaenophryne melanorhabdus + 100 Chauliodus macouni + 101 Chesnonia verrucosa + 102 Chirolophis decoratus + 103 Chirolophis nugator + 104 Chirolophis tarsodes + 105 Chitonotus pugetensis + 106 Chrosomus eos Phoxinus eos + 107 Chrosomus eos x Chrosomus neogaeus Phoxinus eos x Phoxinus neogaeus + 108 Chrosomus neogaeus Phoxinus neogaeus + 109 Citharichthys sordidus + 110 Citharichthys stigmaeus + 111 Clevelandia ios + 112 Clidoderma asperrimum + 113 Clinocottus acuticeps + 114 Clinocottus embryum + 115 Clinocottus globiceps + 116 Clupea pallasii + 117 Cololabis saira + 118 Coregonus artedi + 119 Coregonus autumnalis + 120 Coregonus clupeaformis + 121 Coregonus nasus + 122 Coregonus sardinella + 123 Coryphaenoides acrolepis + 124 Coryphaenoides armatus + 125 Coryphaenoides cinereus + 126 Coryphaenoides filifer + 127 Coryphaenoides leptolepis + 128 Coryphaenoides yaquinae + 129 Cottus aleuticus + 130 Cottus aleuticus pop. 1 Cottus aleuticus;Cottus sp. 2 + 131 Cottus asper + 132 Cottus cognatus + 133 Cottus confusus + 134 Cottus hubbsi Cottus bairdi hubbsi + 135 Cottus rhotheus + 136 Cottus ricei + 137 Cottus sp. 9 + 138 Couesius plumbeus + 139 Couesius plumbeus pop. 2 Couesius plumbeus pop. 1 + 140 Couesius plumbeus pop. 3 Couesius plumbeus pop. 1 + 141 Cryptacanthodes aleutensis + 142 Cryptacanthodes giganteus + 143 Culaea inconstans + 144 Cyclothone atraria + 145 Cyclothone pallida + 146 Cyclothone pseudopallida + 147 Cyclothone signata + 148 Cymatogaster aggregata + 149 Cyprinus carpio + 150 Danaphos oculatus + 151 Dasycottus setiger + 152 Derepodichthys alepidotus + 153 Diaphus theta + 154 Elassodiscus caudatus + 155 Embassichthys bathybius + 156 Embiotoca lateralis + 157 Engraulis mordax + 158 Enophrys bison + 159 Enophrys lucasi + 160 Entosphenus macrostomus Lampetra macrostoma + 161 Entosphenus tridentatus Lampetra tridentata + 162 Eopsetta jordani + 163 Eptatretus deani + 164 Eptatretus stoutii + 165 Erilepis zonifer + 166 Esox lucius + 167 Eumicrotremus orbis + 168 Gadus macrocephalus + 169 Galeorhinus galeus + 170 Gasterosteus aculeatus + 171 Gasterosteus aculeatus pop. 1 Gasterosteus aculeatus ssp. + 172 Gasterosteus aculeatus pop. 2 + 173 Gasterosteus aculeatus pop. 3 + 174 Gasterosteus sp. 1 + 175 Gasterosteus sp. 12 + 176 Gasterosteus sp. 13 + 177 Gasterosteus sp. 16 + 178 Gasterosteus sp. 17 + 179 Gasterosteus sp. 18 + 180 Gasterosteus sp. 19 + 181 Gasterosteus sp. 2 + 182 Gasterosteus sp. 3 + 183 Gasterosteus sp. 4 + 184 Gasterosteus sp. 5 + 185 Genyonemus lineatus + 186 Gibbonsia metzi + 187 Gibbonsia montereyensis + 188 Glyptocephalus zachirus Errex zachirus + 189 Gobiesox maeandricus + 190 Gymnocanthus galeatus + 191 Gyrinomimus sp. 1 + 192 Halargyreus johnsonii + 193 Hemilepidotus hemilepidotus + 194 Hemilepidotus spinosus + 195 Hemitripterus bolini + 196 Heterostichus rostratus + 197 Hexagrammos decagrammus + 198 Hexagrammos lagocephalus + 199 Hexagrammos octogrammus + 200 Hexagrammos stelleri + `English Name` English Name Synonym~1 `Species Code` `Element Code` + + 1 "Fanged Snailfish" F-ACCA AFC4G21020 + 2 "Spiny Snailfish" F-ACOP AFC4G21010 + 3 "Green Sturgeon" F-ACME AFCAA01030 + 4 "White Sturgeon" F-ACTR AFCAA01050 + 5 "White Sturgeon (Upper~ F-ACTR-01 AFCAA01051 + 6 "White Sturgeon (Upper~ F-ACTR-02 AFCAA01052 + 7 "White Sturgeon (Lower~ F-ACTR-04 AFCAA01054 + 8 "White Sturgeon (Upper~ F-ACTR-05 AFCAA01055 + 9 "Chiselmouth" F-ACAL AFCJB01010 + 10 "Northern Spearnose Po~ F-AGVU AFC4F02020 + 11 "Giant Grenadier" F-ALPE AFCMC05010 + 12 "Longnose Lancetfish" F-ALFE AFC8E01020 + 13 "California Slickhead" F-ALTE AFCHH02010 + 14 "Oxeye Oreo" F-ALFO AFC1D01010 + 15 "Y-prickleback" F-ALHY AFCSC04010 + 16 "Whitebait Smelt" F-ALEL AFCHB05010 + 17 "Thresher Shark" F-ALVU AFDDC01020 + 18 "American Shad" F-ALSA AFCFA01060 + 19 "Broad Skate" F-AMBA AFDFD01180 + 20 "Black Bullhead" F-AMME AFCKA06030 + 21 "Brown Bullhead" F-AMNE AFCKA06050 + 22 "Pacific Sand Lance" F-AMHE AFCS601030 + 23 "Redtail Surfperch" F-AMRH AFCQK03030 + 24 "Wolf-eel" F-ANOC AFCSD02010 + 25 "Smooth Alligatorfish" F-ANIN AFC4F05010 + 26 "Slender Cockscomb" F-ANIS AFCSC05010 + 27 "High Cockscomb" F-ANPU AFCSC05020 + 28 "Longhorn Fangtooth" F-ANCO AFCZD02010 + 29 "Sablefish" F-ANFI AFC4C01010 + 30 "North Pacific Daggert~ F-ANNI AFC8F01020 + 31 "Pacific Flatnose" F-ANMI AFCMH01020 + 32 "Black Scabbardfish" F-APCA AFCS211010 + 33 "Penpoint Gunnel" F-APFL AFCQR03020 + 34 "Rockweed Gunnel" F-APFU AFCQR03010 + 35 "Brown Cat Shark" F-APBR AFDDF01010 + 36 "Smooth Lumpsucker" F-APVE AFC4G08010 + 37 "White Barracudina" F-ARRI AFC8D02010 + 38 "Lowcrest Hatchetfish" F-ARSL AFC7C01020 + 39 "Shining Loosejaw" F-ARSC AFC7B04010 + 40 "Padded Sculpin" F-ARFE AFC4E23020 + 41 "Scalyhead Sculpin" F-ARHA AFC4E23030 + 42 "Smoothhead Sculpin" F-ARLA AFC4E23040 + 43 "Rosylip Sculpin" F-ASRH AFC4E24010 + 44 "Spinynose Sculpin" F-ASTA AFC4E25010 + 45 "Arrowtooth" F-ATST AFCTB19020 + 46 "Topsmelt" F-ATAF AFCND04010 + 47 "White Seabass" F-ATNO AFCQH10010 + 48 "Tube-snout" F-AUFL AFCPA05010 + 49 "Closespine Snipe Eel" F-AVIN AFCEJ02010 + 50 "Finescale Triggerfish" F-BAPO AFC3B03020 + 51 "Velvet Whalefish" F-BARU AFC9B02010 + 52 "Highfin Dragonfish" F-BAFL AFC7B05010 + 53 "Gray Starsnout" F-BAAL AFC4F06010 + 54 "Spinycheek Starsnout" F-BAIN AFC4F06020 + 55 "Blackfin Poacher" F-BANI AFC4F06030 + 56 "Bigeye Poacher" F-BAPE AFC4F06040 + 57 "Slender Blacksmelt" F-BAPA AFCHF02020 + 58 "Javelin Spookfish" F-BAEX AFCHG02010 + 59 "Alaskan Ronquil" F-BACA AFCRY01010 + 60 "Searcher" F-BASI AFCRY01020 + 61 "Abyssal Skate" F-BAAB AFDFD02080 + 62 "Aleutian Skate" F-BAAE AFDFD02010 + 63 "Sandpaper Skate" F-BAIT AFDFD02030 + 64 "Whitebrow Skate" F-BAMI AFDFD02140 + 65 "Alaska Skate" F-BAPR AFDFD02040 + 66 "Roughtail Skate" F-BATR AFDFD02060 + 67 "Northern Pearleye" F-BEDE AFC8G01010 + 68 "Longfin Pearleye" F-BELI AFC8G01020 + 69 "Frostfish" F-BEPA AFCS202020 + 70 "Javelinfish" F-BETE AFCS202040 + 71 "Crested Sculpin" F-BLBI AFC4E26010 + 72 "Silverspotted Sculpin" F-BLCI AFC4E26020 + 73 "Rockhead" F-BOSW AFC4F07010 + 74 "Twoline Eelpout" F-BOBR AFCS802020 + 75 "Soft Eelpout" F-BOMO AFCS802030 + 76 "Alaska Eelpout" F-BOPU AFCMG02010 + 77 "Kelp Perch" F-BRFR AFCQK04010 + 78 "Pacific Pomfret" F-BRJA AFCRH01040 + 79 "Red Brotula" F-BRMA AFCME01010 + 80 "Pearly Prickleback" F-BRMR AFCSC06020 + 81 "Goldfish" F-CAAU AFCJB04010 + 82 "White Shark" F-CACA AFDDE01010 + 83 "Falcate Snailfish" F-CACY AFC4G09150 + 84 "Longfin Snailfish" F-CAGI AFC4G09070 + 85 "Blacktail Snailfish" F-CAME AFC4G09020 + 86 "Smallfin Snailfish" F-CAOR AFC4G09120 + 87 "Abyssal Snailfish" F-CAOV AFC4G09130 + 88 "Manefish" F-CAMC AFCQ101010 + 89 "Longnose Sucker" F-CACT AFCJC02030 + 90 "Bridgelip Sucker" F-CACO AFCJC02050 + 91 "White Sucker" F-CACM AFCJC02060 + 92 "Largescale Sucker" F-CAMA AFCJC02130 + 93 "Mountain Sucker" F-CAPL AFCJC02160 + 94 "Salish Sucker" F-CASP-04 AFCJC02260 + 95 "Ocean Whitefish" F-CAPR AFCRE01050 + 96 "Deepsea Angler" F-CEHO AFCYE02010 + 97 "Dogtooth Lanternfish" F-CETO AFCVH01010 + 98 "Basking Shark" F-CEMA AFDDD01010 + 99 "Smooth Dreamer" F-CHME AFCYH01010 + 100 "Pacific Viperfish" F-CHMA AFC7B01010 + 101 "Warty Poacher" F-CHVE AFC4F09030 + 102 "Decorated Warbonnet" F-CHDE AFCSC08020 + 103 "Mosshead Warbonnet" F-CHNU AFCSC08030 + 104 "Matcheek Warbonnet" F-CHTA AFCSC08040 + 105 "Roughback Sculpin" F-CHPU AFC4E27010 + 106 "Northern Redbelly Dac~ F-CHEO AFCJB31020 + 107 "Northern Redbelly Dac~ F-CHEOxCHNE AFCJB31X10 + 108 "Finescale Dace" F-CHNE AFCJB31040 + 109 "Pacific Sanddab" F-CISO AFCTA01080 + 110 "Speckled Sanddab" F-CIST AFCTA01090 + 111 "Arrow Goby" F-CLIO AFCQN03010 + 112 "Roughscale Sole" F-CLAS AFCTB23010 + 113 "Sharpnose Sculpin" F-CLAC AFC4E01010 + 114 "Calico Sculpin" F-CLEM AFC4E01030 + 115 "Mosshead Sculpin" F-CLGL AFC4E01040 + 116 "Pacific Herring" F-CLPA AFCFA07030 + 117 "Pacific Saury" F-COSA AFCNF01010 + 118 "Cisco" F-COAR AFCHA01020 + 119 "Arctic Cisco" F-COAU AFCHA01030 + 120 "Lake Whitefish" F-COCL AFCHA01040 + 121 "Broad Whitefish" F-CONA AFCHA01090 + 122 "Least Cisco" F-COSR AFCHA01130 + 123 "Roughscale Grenadier" F-COAC AFCMC06010 + 124 "Russet Grenadier" F-COAM AFCMC06020 + 125 "Popeye" F-COCI AFCMC06030 + 126 "Filamented Rattail" F-COFI AFCMC06040 + 127 "Ghostly Grenadier" F-COLE AFCMC06050 + 128 "Rough Abyssal Grendie~ F-COYA AFCMC06080 + 129 "Coastrange Sculpin" F-COAL AFC4E02010 + 130 "Cultus Pygmy Sculpin" Cultus Lake Sculpin;C~ F-COSP-02 AFC4E02270 + 131 "Prickly Sculpin" F-COAS AFC4E02020 + 132 "Slimy Sculpin" F-COCO AFC4E02080 + 133 "Shorthead Sculpin" F-COCN AFC4E02090 + 134 "Columbia Sculpin" F-COHU AFC4E02053 + 135 "Torrent Sculpin" F-CORH AFC4E02220 + 136 "Spoonhead Sculpin" F-CORI AFC4E02230 + 137 "Rocky Mountain Sculpi~ F-COSP-04 AFC4E02380 + 138 "Lake Chub" F-COPL AFCJB06010 + 139 "Lake Chub - Liard Hot~ Lake Chub - Hotspring~ F-COPL-02 AFCJB06012 + 140 "Lake Chub - Atlin War~ Lake Chub - Hotspring~ F-COPL-03 AFCJB06013 + 141 "Dwarf Wrymouth" F-CRAL AFCSF01020 + 142 "Giant Wrymouth" F-CRGI AFCSF01030 + 143 "Brook Stickleback" F-CUIN AFCPA02010 + 144 "Yellow Bristlemouth" F-CYAT AFC7A01020 + 145 "Tan Bristlemouth" F-CYPA AFC7A01030 + 146 "Slender Bristlemouth" F-CYPS AFC7A01040 + 147 "Showy Bristlemouth" F-CYSI AFC7A01050 + 148 "Shiner Perch" F-CYAG AFCQK01010 + 149 "Common Carp" F-CYCA AFCJB08010 + 150 "Bottlelight" F-DAOC AFC7D03010 + 151 "Spinyhead Sculpin" F-DASE AFC4E28010 + 152 "Cuskpout" F-DEAL AFCS812010 + 153 "California Headlightf~ F-DITH AFCVH02010 + 154 "Humpback Snailfish" F-ELCA AFC4G10070 + 155 "Deepsea Sole" F-EMBA AFCTB03010 + 156 "Striped Seaperch" F-EMLA AFCQK05020 + 157 "Northern Anchovy" F-ENMO AFCFB04020 + 158 "Buffalo Sculpin" F-ENBI AFC4E29010 + 159 "Leister Sculpin" F-ENLU AFC4E29030 + 160 "Cowichan Lake Lamprey" Lake Lamprey;Vancouve~ F-ENMA AFBAA02120 + 161 "Pacific Lamprey" F-ENTR AFBAA02100 + 162 "Petrale Sole" F-EOJO AFCTB04010 + 163 "Black Hagfish" F-EPDE AFABA01010 + 164 "Pacific Hagfish" F-EPST AFABA01020 + 165 "Skilfish" F-ERZO AFC4C02010 + 166 "Northern Pike" F-ESLU AFCHD01020 + 167 "Pacific Spiny Lumpsuc~ F-EUOR AFC4G13030 + 168 "Pacific Cod" F-GAMA AFCMA08010 + 169 "Soupfin Shark" Tope F-GAGA AFDDG02030 + 170 "Threespine Sticklebac~ F-GAAC AFCPA03010 + 171 "Charlotte Unarmoured ~ Charlotte Unarmoured ~ F-GAAC-01 AFCPA03014 + 172 "Little Quarry Lake Be~ F-GAAC-02 AFCPA03016 + 173 "Little Quarry Limneti~ F-GAAC-03 AFCPA03017 + 174 "Giant Threespine Stic~ Giant Black Stickleba~ F-GASP-01 AFCPA03X10 + 175 "Hadley Lake Limnetic ~ F-GASP-12 AFCPA03140 + 176 "Hadley Lake Benthic S~ F-GASP-13 AFCPA03150 + 177 "Vananda Creek Limneti~ F-GASP-16 AFCPA03180 + 178 "Vananda Creek Benthic~ F-GASP-17 AFCPA03190 + 179 "Misty Lake \"Lake\" S~ F-GASP-18 AFCPA03200 + 180 "Misty Lake \"Stream\"~ F-GASP-19 AFCPA03210 + 181 "Enos Lake Limnetic St~ F-GASP-02 AFCPA03040 + 182 "Enos Lake Benthic Sti~ F-GASP-03 AFCPA03050 + 183 "Paxton Lake Limnetic ~ F-GASP-04 AFCPA03060 + 184 "Paxton Lake Benthic S~ F-GASP-05 AFCPA03070 + 185 "White Croaker" F-GELI AFCQH13010 + 186 "Striped Kelpfish" F-GIME AFCQQ08030 + 187 "Crevice Kelpfish" F-GIMO AFCQQ08040 + 188 "Rex Sole" F-GLZA AFCTB21010 + 189 "Northern Clingfish" F-GOMA AFCXA02020 + 190 "Armorhead Sculpin" F-GYGA AFC4E19020 + 191 "Flabby Whalefish" F-GYSP AFC9B01010 + 192 "Slender Codling" F-HAJO AFCMH04010 + 193 "Red Irish Lord" F-HEHE AFC4E31010 + 194 "Brown Irish Lord" F-HESP AFC4E31040 + 195 "Bigmouth Sculpin" F-HEBO AFC4E20020 + 196 "Giant Kelpfish" F-HERO AFCQQ10010 + 197 "Kelp Greenling" F-HEDE AFC4D01010 + 198 "Rock Greenling" F-HELA AFC4D01020 + 199 "Masked Greenling" F-HEOC AFC4D01030 + 200 "Whitespotted Greenlin~ F-HEST AFC4D01040 + `Global Status` Global Status Review ~2 `Prov Status` Prov Status Review D~3 + + 1 GNR SNR + 2 GNR SNR + 3 G3 04-Jan-04 S2S3N 15-May-19 + 4 G4 12-Nov-02 S2 27-Apr-18 + 5 G4T1Q 17-Feb-06 S1 24-Apr-18 + 6 G4T3T4 29-Jan-03 S1 24-Apr-18 + 7 G4T2 20-Mar-02 S1S2 24-Apr-18 + 8 G4T1 05-Oct-01 S2 19-Apr-18 + 9 G5 12-Oct-11 S4 15-May-19 + 10 GNR SNR + 11 GNR SNR + 12 G5 24-Dec-17 SNR + 13 GNR SNR + 14 GNR SNR + 15 GNR SNR + 16 GNR SNR + 17 GNR SNR + 18 G5 27-Dec-17 SNA 15-May-19 + 19 GNR SNR + 20 G5 17-Aug-15 SNA 15-May-19 + 21 G5 17-Aug-15 SNA 15-May-19 + 22 G5 19-Apr-17 SNR + 23 GNR SNR + 24 G5 09-Feb-17 SNR + 25 GNR SNR + 26 GNR SNR + 27 GNR SNR + 28 G5 21-Dec-17 SNR + 29 G5 22-Dec-17 SNR + 30 GNR SNR + 31 GNR SNR + 32 GNR SNR + 33 GNR SNR + 34 GNR SNR + 35 GNR SNR + 36 GNR SNR + 37 G5 26-Dec-17 SNR + 38 G5 23-Mar-09 SNR + 39 GNR SNR + 40 GNR SNR + 41 GNR SNR + 42 GNR SNR + 43 GNR SNR + 44 GNR SNR + 45 G5 22-Dec-17 SNR + 46 GNR SNR + 47 GNR SNR + 48 G5 22-Dec-17 SNR + 49 GNR SNR + 50 GNR SNR + 51 GNR SNR + 52 GNR SNR + 53 GNR SNR + 54 GNR SNR + 55 GNR SNR + 56 GNR SNR + 57 GNR SNR + 58 GNR SNR + 59 GNR SNR + 60 GNR SNR + 61 GNR SNR + 62 GNR SNR + 63 G5 19-Apr-17 SNR + 64 G5 19-Feb-08 SNR + 65 GNR SNR + 66 GNR SNR + 67 GNR SNR + 68 GNR SNR + 69 GNR SNR + 70 GNR SNR + 71 GNR SNR + 72 GNR SNR + 73 GNR SNR + 74 G5 22-Dec-17 SNR + 75 GNR SNR + 76 GNR SNR + 77 G5 22-Dec-17 SNR + 78 GNR SNR + 79 GNR SNR + 80 GNR SNR + 81 G5 13-Sep-96 SNA 15-May-19 + 82 G2 30-Jun-14 SNR + 83 GNR SNR + 84 GNR SNR + 85 GNR SNR + 86 GNR SNR + 87 GNR SNR + 88 GNR SNR + 89 G5 17-Aug-15 S5 15-May-19 + 90 G5 09-Feb-16 S5 15-May-19 + 91 G5 17-Aug-15 S5 15-May-19 + 92 G5 10-May-16 S5 15-May-19 + 93 G5 09-Feb-16 S3? 15-May-19 + 94 G1 22-Jun-11 S2 15-May-19 + 95 GNR SNR + 96 G5 26-Dec-17 SNR + 97 GNR SNR + 98 G2G3 30-Jun-14 SNR + 99 GNR SNR + 100 G5 22-Dec-17 SNR + 101 GNR SNR + 102 GNR SNR + 103 GNR SNR + 104 GNR SNR + 105 GNR SNR + 106 G5 17-Aug-15 S4 15-Mar-19 + 107 GNA 18-Oct-02 S2 15-May-19 + 108 G5 10-May-16 S4S5 15-May-19 + 109 G5 22-Dec-17 SNR + 110 G5 22-Dec-17 SNR + 111 G5 25-Sep-96 SNR + 112 GNR SNR + 113 G5 08-Jan-97 SNR + 114 GNR SNR + 115 GNR SNR + 116 G5 22-Dec-17 SNR + 117 GNR SNR + 118 G5 17-Aug-15 S2 15-Mar-19 + 119 G5 04-Nov-11 S1S2 15-May-19 + 120 G5 17-Aug-15 S5 15-May-19 + 121 G5 02-Aug-16 S2 15-May-19 + 122 G5 27-Dec-17 S3 15-Mar-19 + 123 GNR SNR + 124 GNR SNR + 125 GNR SNR + 126 GNR SNR + 127 GNR SNR + 128 GNR SNR + 129 G5 22-Sep-15 S5 15-May-19 + 130 G1G2 11-May-10 S1S2 15-May-19 + 131 G5 22-Sep-15 S5 15-May-19 + 132 G5 17-Aug-15 S5 15-May-19 + 133 G5 09-Nov-11 S3 15-May-19 + 134 G4Q 09-Nov-11 S3 15-May-19 + 135 G5 09-Feb-16 S4S5 15-May-19 + 136 G5 17-Aug-15 S4 15-May-19 + 137 G3G4 20-Jan-09 S2 15-May-19 + 138 G5 17-Aug-15 S5 15-May-19 + 139 G5TNR S1S2 15-May-19 + 140 G5TNR S1 15-May-19 + 141 GNR SNR + 142 GNR SNR + 143 G5 17-Aug-15 S5 30-Mar-18 + 144 GNR SNR + 145 GNR SNR + 146 GNR SNR + 147 GNR SNR + 148 G5 22-Dec-17 SNR + 149 G5 13-Sep-96 SNA 15-May-19 + 150 GNR SNR + 151 GNR SNR + 152 GNR SNR + 153 G5 22-Dec-17 SNR + 154 GNR SNR + 155 GNR SNR + 156 G5 22-Dec-17 SNR + 157 GNR SNR + 158 GNR SNR + 159 GNR SNR + 160 G1G2 29-Nov-18 S2 15-May-19 + 161 G4 23-Feb-12 S5 15-May-19 + 162 G5 22-Dec-17 SNR + 163 GNR SNR + 164 G5 22-Dec-17 SNR + 165 GNR SNR + 166 G5 17-Aug-15 S5 12-Jan-04 + 167 GNR SNR + 168 G5 22-Dec-17 SNR + 169 GNR SNR + 170 G5 27-Dec-17 S5 30-Mar-18 + 171 G5T2 05-Jul-19 S1S2 30-Mar-18 + 172 G5TNR S1 15-May-19 + 173 G5TNR S1 15-May-19 + 174 G1 05-Jul-19 S1S2 30-Mar-18 + 175 GX 29-Nov-18 SX 30-Mar-18 + 176 GX 29-Nov-18 SX 30-Mar-18 + 177 G1 29-Nov-18 S1 30-Mar-18 + 178 G1 29-Nov-18 S1 30-Mar-18 + 179 G1 29-Nov-18 S1 30-Mar-18 + 180 G1 29-Nov-18 S1 30-Mar-18 + 181 G1 05-Jul-19 SX 30-Mar-18 + 182 G1 29-Nov-18 SX 30-Apr-18 + 183 G1 29-Nov-18 S1 30-Mar-18 + 184 G1 04-Feb-16 S1 30-Mar-18 + 185 GNR SNR + 186 GNR SNR + 187 GNR SNR + 188 G5 22-Dec-17 SNR + 189 GNR SNR + 190 GNR SNR + 191 GNR SNR + 192 GNR SNR + 193 GNR SNR + 194 GNR SNR + 195 GNR SNR + 196 GNR SNR + 197 G5 22-Dec-17 SNR + 198 GNR SNR + 199 GNR SNR + 200 G5 22-Dec-17 SNR + # i 350 more rows + # i abbreviated names: 1: `English Name Synonyms`, 2: `Global Status Review Date`, 3: `Prov Status Review Date` + # i 35 more variables: `Prov Status Change Date` , COSEWIC , `COSEWIC Comments` , `BC List` , `Provincial FRPA` , `Land Use Objectives` , Ecosection , + # `Prov Wildlife Act` , GOERT , MBCA , SARA , `SARA Comments` , `General Status Canada` , CITES , `Name Category` , `Class (English)` , + # `Species Level` , Kingdom , Phylum , Class , Order , Family , `Forest Dist` , `MOE Region` , `Regional Dist` , Municipality , BGC , + # `Habitat Subtype` , Origin , Presence , `Breeding Bird` , `Ecosystem Group` , Endemic , `CDC Maps` , `Mapping Status` + diff --git a/tests/testthat/_snaps/freshwaterfish.md b/tests/testthat/_snaps/freshwaterfish.md new file mode 100644 index 0000000..ba0ab24 --- /dev/null +++ b/tests/testthat/_snaps/freshwaterfish.md @@ -0,0 +1,496 @@ +# freshwaterfish + + Code + print(freshwaterfish, width = 200, n = 200) + Output + # A tibble: 161 x 17 + Code CommonName Class + + 1 AF All Fish + 2 SP Fish Unidentified Species + 3 SG Sturgeon (General) Actinopterygii + 4 GSG Green Sturgeon Actinopterygii + 5 WSG White Sturgeon Actinopterygii + 6 SH American Shad Actinopterygii + 7 SU Sucker (General) Actinopterygii + 8 LSU Longnose Sucker Actinopterygii + 9 BSU Bridgelip Sucker Actinopterygii + 10 WSU White Sucker Actinopterygii + 11 CSU Largescale Sucker Actinopterygii + 12 MSU Northern Mountain Sucker Actinopterygii + 13 SSU Salish Sucker Actinopterygii + 14 OWF Oriental Weatherfish Actinopterygii + 15 C Minnow (General) Actinopterygii + 16 CBC Chub (General) Actinopterygii + 17 CPG Carp (General) Actinopterygii + 18 DC Dace (General) Actinopterygii + 19 CMC Chiselmouth Actinopterygii + 20 GC Goldfish Actinopterygii + 21 RDC Northern Redbelly Dace Actinopterygii + 22 XDC Northern Redbelly Dace x Finescale Dace Actinopterygii + 23 FDC Finescale Dace Actinopterygii + 24 LKC Lake Chub Actinopterygii + 25 CP Carp Actinopterygii + 26 BMC Brassy Minnow Actinopterygii + 27 PDC Northern Pearl Dace Actinopterygii + 28 PCC Peamouth Chub Actinopterygii + 29 ESC Emerald Shiner Actinopterygii + 30 STC Spottail Shiner Actinopterygii + 31 FM Fathead Minnow Actinopterygii + 32 FHC Flathead Chub Actinopterygii + 33 NSC Northern Pikeminnow Actinopterygii + 34 LNC Longnose Dace Actinopterygii + 35 NDC Nooksack Dace Actinopterygii + 36 LDC Leopard Dace Actinopterygii + 37 SDC Speckled Dace Actinopterygii + 38 UDC Umatilla Dace Actinopterygii + 39 RSC Redside Shiner Actinopterygii + 40 TC Tench Actinopterygii + 41 GAM Mosquitofish Actinopterygii + 42 NP Northern Pike Actinopterygii + 43 TMP Tiger Muskellunge Actinopterygii + 44 BB Burbot Actinopterygii + 45 SB Stickleback (General) Actinopterygii + 46 BSB Brook Stickleback Actinopterygii + 47 SB3 Charlotte Unarmoured Threespine Stickleback Actinopterygii + 48 TSB Threespine Stickleback Actinopterygii + 49 CSB Unarmoured Stickleback Actinopterygii + 50 SB1 Balkwill Lake Benthic Stickleback Actinopterygii + 51 SB11 Lake Sticklebacks Actinopterygii + 52 SB2 Balkwill Lake Limnetic Stickleback Actinopterygii + 53 SB4 Emily Lake Benthic Stickleback Actinopterygii + 54 SB5 Emily Lake Limnetic Stickleback Actinopterygii + 55 SBB Priest Lake Benthic Stickleback Actinopterygii + 56 SBP Priest Lake Limnetic Stickleback Actinopterygii + 57 SB8 Giant Stickleback Actinopterygii + 58 SB10 Hadley Lake Limnetic Stickleback Actinopterygii + 59 SB9 Hadley Lake Benthic Stickleback Actinopterygii + 60 SB14 Misty Lake Lake Stickleback Actinopterygii + 61 SB15 Misty Lake Stream Stickleback Actinopterygii + 62 SB7 Enos Lake Limnetic Stickleback Actinopterygii + 63 SB6 Enos Lake Benthic Stickleback Actinopterygii + 64 SB13 Paxton Lake Limnetic Stickleback Actinopterygii + 65 SB12 Paxton Lake Benthic Stickleback Actinopterygii + 66 NSB Ninespine Stickleback Actinopterygii + 67 GE Goldeye Actinopterygii + 68 SM Smelt (General) Actinopterygii + 69 SSM Surf Smelt Actinopterygii + 70 RSM Rainbow Smelt Actinopterygii + 71 LSM Longfin Smelt Actinopterygii + 72 PLS Pygmy Longfin Smelt Actinopterygii + 73 EU Eulachon Actinopterygii + 74 BS Bass/Sunfish (General) Actinopterygii + 75 PMB Pumpkinseed Actinopterygii + 76 BG Bluegill Actinopterygii + 77 SMB Smallmouth Bass Actinopterygii + 78 LMB Largemouth Bass Actinopterygii + 79 BCB Black Crappie Actinopterygii + 80 CHMC Blotched Snakehead Actinopterygii + 81 CYAG Shiner Perch Actinopterygii + 82 P Perch (General) Actinopterygii + 83 YP Yellow Perch Actinopterygii + 84 WP Walleye Actinopterygii + 85 TP Trout-Perch Actinopterygii + 86 SA Salmon (General) Actinopterygii + 87 TR Unidentifiable Trout - only fry <70mm in length Actinopterygii + 88 WF Whitefish (General) Actinopterygii + 89 CL Cisco Actinopterygii + 90 CA Arctic Cisco Actinopterygii + 91 LW Lake Whitefish Actinopterygii + 92 CB Bering Cisco Actinopterygii + 93 BW Broad Whitefish Actinopterygii + 94 CS Least Cisco Actinopterygii + 95 DLW Dragon Lake Whitefish Actinopterygii + 96 SQ Squanga Actinopterygii + 97 AO All Pacific Salmon Actinopterygii + 98 ACT Cutthroat Trout (Anadromous) Actinopterygii + 99 CT Cutthroat Trout Actinopterygii + 100 CRS Cutthroat/Rainbow cross Actinopterygii + 101 CCT Coastal Cutthroat Trout Actinopterygii + 102 WCT Westslope Cutthroat Trout Actinopterygii + 103 PK Pink Salmon Actinopterygii + 104 CM Chum Salmon Actinopterygii + 105 CO Coho Salmon Actinopterygii + 106 RB Rainbow Trout Actinopterygii + 107 SST Steelhead (Summer-run) Actinopterygii + 108 ST Steelhead Actinopterygii + 109 WST Steelhead (Winter-run) Actinopterygii + 110 GT Golden Trout Actinopterygii + 111 KO Kokanee Actinopterygii + 112 SK Sockeye Salmon Actinopterygii + 113 CH Chinook Salmon Actinopterygii + 114 GPW Giant Pygmy Whitefish Actinopterygii + 115 PW Pygmy Whitefish Actinopterygii + 116 RW Round Whitefish Actinopterygii + 117 MW Mountain Whitefish Actinopterygii + 118 MWxRW Mountain x Round Whitefish hybrid Actinopterygii + 119 AS Atlantic Salmon Actinopterygii + 120 AGB Brown Trout (Anadromous) Actinopterygii + 121 GB Brown Trout Actinopterygii + 122 SLV Char (General) Actinopterygii + 123 AC Arctic Char Actinopterygii + 124 ABT Bull Trout (Anadromous) Actinopterygii + 125 BT Bull Trout Actinopterygii + 126 AEB Brook Trout (Anadromous) Actinopterygii + 127 EB Brook Trout Actinopterygii + 128 SPK Splake Actinopterygii + 129 ADV Dolly Varden (Anadromous) Actinopterygii + 130 DV Dolly Varden Actinopterygii + 131 DVxBT Verified DV BT hybrid Actinopterygii + 132 LT Lake Trout Actinopterygii + 133 IN Inconnu Actinopterygii + 134 GR Arctic Grayling Actinopterygii + 135 MG Montana Grayling Actinopterygii + 136 CC Sculpin (General) Actinopterygii + 137 CCA Sharpnose Sculpin Actinopterygii + 138 CAL Coastrange Sculpin (formerly Aleutian Sculpin) Actinopterygii + 139 CCL Cultus Lake Sculpin Actinopterygii + 140 CAS Prickly Sculpin Actinopterygii + 141 CBA Mottled Sculpin Actinopterygii + 142 CMM Malheur Mottled Sculpin Actinopterygii + 143 CCG Slimy Sculpin Actinopterygii + 144 CCN Shorthead Sculpin Actinopterygii + 145 CCH Columbia Sculpin Actinopterygii + 146 CRH Torrent Sculpin Actinopterygii + 147 CRI Spoonhead Sculpin Actinopterygii + 148 CRM Rocky Mountain Sculpin Actinopterygii + 149 CLA Staghorn Sculpin Actinopterygii + 150 CMT Deepwater Sculpin Actinopterygii + 151 BH Bullhead (General) Actinopterygii + 152 BKH Black Bullhead Actinopterygii + 153 YB Yellow Bullhead Actinopterygii + 154 BNH Brown Bullhead Actinopterygii + 155 L Lamprey (General) Petromyzontida + 156 RL River Lamprey Petromyzontida + 157 LL Cowichan Lake Lamprey Petromyzontida + 158 BL Western Brook Lamprey Petromyzontida + 159 MCL Morrison Creek Lamprey Petromyzontida + 160 AL Arctic Lamprey Petromyzontida + 161 PL Pacific Lamprey Petromyzontida + Order Family Genus Species Subspecies + + 1 + 2 + 3 Acipenseriformes Acipenseridae Acipenser + 4 Acipenseriformes Acipenseridae Acipenser medirostris + 5 Acipenseriformes Acipenseridae Acipenser transmontanus + 6 Clupeiformes Clupeidae Alosa sapidissima + 7 Cypriniformes Catostomidae + 8 Cypriniformes Catostomidae Catostomus catostomus + 9 Cypriniformes Catostomidae Catostomus columbianus + 10 Cypriniformes Catostomidae Catostomus commersonii + 11 Cypriniformes Catostomidae Catostomus macrocheilus + 12 Cypriniformes Catostomidae Catostomus platyrhynchus + 13 Cypriniformes Catostomidae Catostomus sp. 4 + 14 Cypriniformes Cobitidae Misgurnus anguillicaudatus + 15 Cypriniformes Cyprinidae + 16 Cypriniformes Cyprinidae + 17 Cypriniformes Cyprinidae + 18 Cypriniformes Cyprinidae + 19 Cypriniformes Cyprinidae Acrocheilus alutaceus + 20 Cypriniformes Cyprinidae Carassius auratus + 21 Cypriniformes Cyprinidae Chrosomus eos + 22 Cypriniformes Cyprinidae Chrosomus eos + 23 Cypriniformes Cyprinidae Chrosomus neogaeus + 24 Cypriniformes Cyprinidae Couesius plumbeus + 25 Cypriniformes Cyprinidae Cyprinus carpio + 26 Cypriniformes Cyprinidae Hybognathus hankinsoni + 27 Cypriniformes Cyprinidae Margariscus margarita + 28 Cypriniformes Cyprinidae Mylocheilus caurinus + 29 Cypriniformes Cyprinidae Notropis atherinoides + 30 Cypriniformes Cyprinidae Notropis hudsonius + 31 Cypriniformes Cyprinidae Pimephales promelas + 32 Cypriniformes Cyprinidae Platygobio gracilis + 33 Cypriniformes Cyprinidae Ptychocheilus oregonensis + 34 Cypriniformes Cyprinidae Rhinichthys cataractae + 35 Cypriniformes Cyprinidae Rhinichthys cataractae + 36 Cypriniformes Cyprinidae Rhinichthys falcatus + 37 Cypriniformes Cyprinidae Rhinichthys osculus + 38 Cypriniformes Cyprinidae Rhinichthys umatilla + 39 Cypriniformes Cyprinidae Richardsonius balteatus + 40 Cypriniformes Cyprinidae Tinca tinca + 41 Cyprinodontiformes Poeciliidae Gambusia affinis + 42 Esociformes Esocidae Esox lucius + 43 Esociformes Esocidae Esox lucius + 44 Gadiformes Gadidae Lota lota + 45 Gasterosteiformes Gasterosteidae + 46 Gasterosteiformes Gasterosteidae Culaea inconstans + 47 Gasterosteiformes Gasterosteidae Gasterosteus aculeatus + 48 Gasterosteiformes Gasterosteidae Gasterosteus aculeatus + 49 Gasterosteiformes Gasterosteidae Gasterosteus sp + 50 Gasterosteiformes Gasterosteidae Gasterosteus sp + 51 Gasterosteiformes Gasterosteidae Gasterosteus sp + 52 Gasterosteiformes Gasterosteidae Gasterosteus sp + 53 Gasterosteiformes Gasterosteidae Gasterosteus sp + 54 Gasterosteiformes Gasterosteidae Gasterosteus sp + 55 Gasterosteiformes Gasterosteidae Gasterosteus sp + 56 Gasterosteiformes Gasterosteidae Gasterosteus sp + 57 Gasterosteiformes Gasterosteidae Gasterosteus sp. 1 + 58 Gasterosteiformes Gasterosteidae Gasterosteus sp. 12 + 59 Gasterosteiformes Gasterosteidae Gasterosteus sp. 13 + 60 Gasterosteiformes Gasterosteidae Gasterosteus sp. 18 + 61 Gasterosteiformes Gasterosteidae Gasterosteus sp. 19 + 62 Gasterosteiformes Gasterosteidae Gasterosteus sp. 2 + 63 Gasterosteiformes Gasterosteidae Gasterosteus sp. 3 + 64 Gasterosteiformes Gasterosteidae Gasterosteus sp. 4 + 65 Gasterosteiformes Gasterosteidae Gasterosteus sp. 5 + 66 Gasterosteiformes Gasterosteidae Pungitius pungitius + 67 Hiodontiformes Hiodontidae Hiodon alosoides + 68 Osmeriformes Osmeridae + 69 Osmeriformes Osmeridae Hypomesus pretiosus + 70 Osmeriformes Osmeridae Osmerus dentex + 71 Osmeriformes Osmeridae Spirinchus thaleichthys + 72 Osmeriformes Osmeridae Spirincus sp. 1 + 73 Osmeriformes Osmeridae Thaleichthys pacificus + 74 Perciformes Centrarchidae + 75 Perciformes Centrarchidae Lepomis gibbosus + 76 Perciformes Centrarchidae Lepomis macrochirus + 77 Perciformes Centrarchidae Micropterus dolomieui + 78 Perciformes Centrarchidae Micropterus salmoides + 79 Perciformes Centrarchidae Pomoxis nigromaculatus + 80 Perciformes Channidae Channa maculata + 81 Perciformes Embiotocidae Cymatogaster aggregata + 82 Perciformes Percidae + 83 Perciformes Percidae Perca flavescens + 84 Perciformes Percidae Sander vitreus + 85 Percopsiformes Percopsidae Percopsis omiscomaycus + 86 Salmoniformes Salmonidae + 87 Salmoniformes Salmonidae + 88 Salmoniformes Salmonidae + 89 Salmoniformes Salmonidae Coregonus artedi + 90 Salmoniformes Salmonidae Coregonus autumnalis + 91 Salmoniformes Salmonidae Coregonus clupeaformis + 92 Salmoniformes Salmonidae Coregonus laurettae + 93 Salmoniformes Salmonidae Coregonus nasus + 94 Salmoniformes Salmonidae Coregonus sardinella + 95 Salmoniformes Salmonidae Coregonus sp + 96 Salmoniformes Salmonidae Coregonus sp + 97 Salmoniformes Salmonidae Oncorhynchus + 98 Salmoniformes Salmonidae Oncorhynchus clarkii + 99 Salmoniformes Salmonidae Oncorhynchus clarkii + 100 Salmoniformes Salmonidae Oncorhynchus clarkii + 101 Salmoniformes Salmonidae Oncorhynchus clarkii clarkii + 102 Salmoniformes Salmonidae Oncorhynchus clarkii lewisi + 103 Salmoniformes Salmonidae Oncorhynchus gorbuscha + 104 Salmoniformes Salmonidae Oncorhynchus keta + 105 Salmoniformes Salmonidae Oncorhynchus kisutch + 106 Salmoniformes Salmonidae Oncorhynchus mykiss + 107 Salmoniformes Salmonidae Oncorhynchus mykiss + 108 Salmoniformes Salmonidae Oncorhynchus mykiss + 109 Salmoniformes Salmonidae Oncorhynchus mykiss + 110 Salmoniformes Salmonidae Oncorhynchus mykiss aguabonita + 111 Salmoniformes Salmonidae Oncorhynchus nerka + 112 Salmoniformes Salmonidae Oncorhynchus nerka + 113 Salmoniformes Salmonidae Oncorhynchus tshawytscha + 114 Salmoniformes Salmonidae Prosopium coulterii + 115 Salmoniformes Salmonidae Prosopium coulterii + 116 Salmoniformes Salmonidae Prosopium cyclindraceum + 117 Salmoniformes Salmonidae Prosopium williamsoni + 118 Salmoniformes Salmonidae Prosopium williamsoni + 119 Salmoniformes Salmonidae Salmo salar + 120 Salmoniformes Salmonidae Salmo trutta + 121 Salmoniformes Salmonidae Salmo trutta + 122 Salmoniformes Salmonidae Salvelinus + 123 Salmoniformes Salmonidae Salvelinus alpinus + 124 Salmoniformes Salmonidae Salvelinus confluentus + 125 Salmoniformes Salmonidae Salvelinus confluentus + 126 Salmoniformes Salmonidae Salvelinus fontinalis + 127 Salmoniformes Salmonidae Salvelinus fontinalis + 128 Salmoniformes Salmonidae Salvelinus fontinalis + 129 Salmoniformes Salmonidae Salvelinus malma + 130 Salmoniformes Salmonidae Salvelinus malma + 131 Salmoniformes Salmonidae Salvelinus malma + 132 Salmoniformes Salmonidae Salvelinus namaycush + 133 Salmoniformes Salmonidae Stenodus leucichthys + 134 Salmoniformes Salmonidae Thymallus arcticus + 135 Salmoniformes Salmonidae Thymallus arcticus montanus + 136 Scorpaeniformes Cottidae + 137 Scorpaeniformes Cottidae Clinocottus acuticeps + 138 Scorpaeniformes Cottidae Cottus aleuticus + 139 Scorpaeniformes Cottidae Cottus aleuticus + 140 Scorpaeniformes Cottidae Cottus asper + 141 Scorpaeniformes Cottidae Cottus bairdi + 142 Scorpaeniformes Cottidae Cottus bendirei + 143 Scorpaeniformes Cottidae Cottus cognatus + 144 Scorpaeniformes Cottidae Cottus confusus + 145 Scorpaeniformes Cottidae Cottus hubbsi + 146 Scorpaeniformes Cottidae Cottus rhotheus + 147 Scorpaeniformes Cottidae Cottus ricei + 148 Scorpaeniformes Cottidae Cottus sp. 9 + 149 Scorpaeniformes Cottidae Leptocottus armatus + 150 Scorpaeniformes Cottidae Myoxocephalus thompsoni + 151 Siluriformes Ictaluridae Ameiurus + 152 Siluriformes Ictaluridae Ameiurus melas + 153 Siluriformes Ictaluridae Ameiurus natalis + 154 Siluriformes Ictaluridae Ameiurus nebulosus + 155 Petromyzontiformes + 156 Petromyzontiformes Petromyzontidae Lampetra ayresii + 157 Petromyzontiformes Petromyzontidae Lampetra macrostoma + 158 Petromyzontiformes Petromyzontidae Lampetra richardsoni + 159 Petromyzontiformes Petromyzontidae Lampetra richardsoni marifaga + 160 Petromyzontiformes Petromyzontidae Lampetra sp + 161 Petromyzontiformes Petromyzontidae Lampetra tridentata + Species2 Extant Native Marine Yellow Blue Red CDCode ABCode + + 1 TRUE TRUE TRUE TRUE TRUE TRUE ARCH + 2 TRUE TRUE TRUE TRUE TRUE TRUE ARLM + 3 TRUE TRUE TRUE FALSE TRUE TRUE CRTR + 4 TRUE TRUE TRUE FALSE TRUE FALSE F-ACME + 5 TRUE TRUE TRUE FALSE FALSE TRUE F-ACTR + 6 TRUE FALSE TRUE FALSE FALSE FALSE F-ALSA + 7 TRUE TRUE FALSE TRUE TRUE TRUE DPSC + 8 TRUE TRUE FALSE TRUE FALSE FALSE F-CACT LNSC + 9 TRUE TRUE FALSE TRUE FALSE FALSE F-CACO + 10 TRUE TRUE FALSE TRUE FALSE FALSE F-CACM WHSC + 11 TRUE TRUE FALSE TRUE FALSE FALSE F-CAMA LRSC + 12 TRUE TRUE FALSE FALSE TRUE FALSE F-CAPL MNSC + 13 TRUE TRUE FALSE FALSE FALSE TRUE F-CASP-04 + 14 TRUE FALSE FALSE FALSE FALSE FALSE FAMCATO + 15 TRUE TRUE FALSE TRUE TRUE FALSE FAMCYPR + 16 TRUE TRUE FALSE TRUE FALSE TRUE + 17 TRUE TRUE FALSE TRUE TRUE TRUE + 18 TRUE TRUE FALSE TRUE FALSE TRUE SPLA + 19 TRUE TRUE FALSE TRUE FALSE FALSE F-ACAL + 20 TRUE FALSE FALSE FALSE FALSE FALSE F-CAAU GOFS + 21 TRUE TRUE FALSE TRUE FALSE FALSE F-CHEO NRDC + 22 neogaeus TRUE TRUE FALSE FALSE FALSE TRUE F-CHEOxCHNE NFDC + 23 TRUE TRUE FALSE TRUE FALSE FALSE F-CHNE FNDC + 24 TRUE TRUE FALSE TRUE FALSE FALSE F-COPL LKCH + 25 TRUE FALSE FALSE FALSE FALSE FALSE F-CYCA + 26 TRUE TRUE FALSE FALSE FALSE FALSE F-HYHA BRMN + 27 nachtriebi TRUE TRUE FALSE TRUE FALSE FALSE + 28 TRUE TRUE FALSE TRUE FALSE FALSE F-MYCA PMCH + 29 TRUE TRUE FALSE FALSE FALSE FALSE F-NOAT EMSH + 30 TRUE TRUE FALSE FALSE FALSE TRUE F-NOHU SPSH + 31 TRUE FALSE FALSE FALSE FALSE FALSE F-PIPR FTMN + 32 TRUE TRUE FALSE TRUE FALSE FALSE F-PLGR FLCH + 33 TRUE TRUE FALSE TRUE FALSE FALSE F-PTOR NRSQ + 34 TRUE TRUE FALSE TRUE FALSE FALSE F-RHCA LNDC + 35 TRUE TRUE FALSE FALSE FALSE TRUE F-RHCA-CH + 36 TRUE TRUE FALSE TRUE FALSE FALSE F-RHFA + 37 TRUE TRUE FALSE FALSE TRUE FALSE F-RHOS + 38 TRUE TRUE FALSE FALSE FALSE TRUE F-RHUM + 39 TRUE TRUE FALSE TRUE FALSE FALSE F-RIBA RDSH + 40 TRUE FALSE FALSE FALSE FALSE FALSE F-TITI + 41 TRUE FALSE FALSE FALSE FALSE FALSE + 42 TRUE TRUE FALSE TRUE FALSE FALSE F-ESLU NRPK + 43 masquinongy TRUE TRUE FALSE TRUE FALSE FALSE + 44 TRUE TRUE FALSE TRUE FALSE TRUE F-LOLO BURB + 45 TRUE TRUE TRUE TRUE FALSE TRUE + 46 TRUE TRUE FALSE TRUE FALSE FALSE F-CUIN BRST + 47 TRUE TRUE FALSE FALSE FALSE TRUE F-GAAC-01 + 48 TRUE TRUE TRUE TRUE FALSE FALSE F-GAAC THST + 49 TRUE TRUE FALSE FALSE FALSE FALSE + 50 TRUE TRUE FALSE FALSE FALSE FALSE + 51 TRUE TRUE FALSE FALSE FALSE TRUE + 52 TRUE TRUE FALSE FALSE FALSE FALSE + 53 TRUE TRUE FALSE FALSE FALSE FALSE + 54 TRUE TRUE FALSE FALSE FALSE FALSE + 55 TRUE TRUE FALSE FALSE FALSE FALSE + 56 TRUE TRUE FALSE FALSE FALSE FALSE + 57 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-01 + 58 FALSE TRUE FALSE FALSE FALSE FALSE F-GASP-12 + 59 FALSE TRUE FALSE FALSE FALSE FALSE F-GASP-13 + 60 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-18 + 61 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-19 + 62 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-02 + 63 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-03 + 64 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-04 + 65 TRUE TRUE FALSE FALSE FALSE TRUE F-GASP-05 + 66 TRUE TRUE TRUE FALSE FALSE FALSE F-PUPU NNST + 67 TRUE TRUE FALSE FALSE TRUE FALSE F-HIAL GOLD + 68 TRUE TRUE TRUE FALSE TRUE TRUE + 69 TRUE TRUE TRUE FALSE FALSE FALSE F-HYPR + 70 mordax TRUE TRUE TRUE FALSE FALSE FALSE F-OSDE + 71 TRUE TRUE TRUE FALSE TRUE FALSE F-SPTH + 72 TRUE TRUE FALSE FALSE FALSE TRUE F-SPSP-01 + 73 TRUE TRUE TRUE FALSE TRUE FALSE F-THPA + 74 TRUE FALSE FALSE FALSE FALSE FALSE + 75 TRUE FALSE FALSE FALSE FALSE FALSE F-LEGI + 76 TRUE FALSE FALSE FALSE FALSE FALSE F-LPMA + 77 TRUE FALSE FALSE FALSE FALSE FALSE F-MIDO SMBS + 78 TRUE FALSE FALSE FALSE FALSE FALSE F-MISA + 79 TRUE FALSE FALSE FALSE FALSE FALSE F-PONI + 80 TRUE FALSE FALSE FALSE FALSE FALSE + 81 TRUE TRUE TRUE FALSE FALSE FALSE F-CYAG + 82 TRUE TRUE FALSE TRUE FALSE FALSE + 83 TRUE TRUE FALSE TRUE FALSE FALSE F-PEFL YLPR + 84 TRUE TRUE FALSE TRUE FALSE FALSE F-SAVI WALL + 85 TRUE TRUE FALSE TRUE FALSE FALSE F-PEOM TRPR + 86 TRUE TRUE TRUE TRUE FALSE FALSE + 87 TRUE TRUE TRUE TRUE TRUE TRUE + 88 TRUE TRUE TRUE TRUE TRUE TRUE + 89 TRUE TRUE TRUE FALSE FALSE TRUE F-COAR + 90 TRUE TRUE TRUE FALSE FALSE TRUE F-COAU + 91 TRUE TRUE FALSE TRUE FALSE FALSE F-COCL LKWH + 92 TRUE TRUE TRUE FALSE FALSE FALSE + 93 TRUE TRUE FALSE FALSE FALSE TRUE F-CONA + 94 TRUE TRUE FALSE FALSE TRUE FALSE F-COSR + 95 FALSE TRUE FALSE FALSE FALSE FALSE + 96 TRUE TRUE FALSE FALSE FALSE FALSE + 97 TRUE TRUE TRUE TRUE FALSE FALSE + 98 TRUE TRUE TRUE FALSE FALSE FALSE F-ONCL CTTR + 99 TRUE TRUE FALSE FALSE FALSE FALSE F-ONCL CTTR + 100 mykiss TRUE TRUE TRUE FALSE FALSE FALSE + 101 TRUE TRUE TRUE FALSE TRUE FALSE F-ONCL-CL + 102 TRUE TRUE FALSE FALSE TRUE FALSE F-ONCL-LE WSCT + 103 TRUE TRUE TRUE TRUE FALSE FALSE F-ONGO + 104 TRUE TRUE TRUE TRUE FALSE FALSE F-ONKE + 105 TRUE TRUE TRUE TRUE FALSE FALSE F-ONKI CHSL + 106 TRUE TRUE FALSE TRUE FALSE FALSE F-ONMY GLTR + 107 TRUE TRUE TRUE TRUE FALSE TRUE F-ONMY RNTR + 108 TRUE TRUE TRUE TRUE FALSE TRUE F-ONMY + 109 TRUE TRUE TRUE TRUE FALSE TRUE F-ONMY + 110 TRUE FALSE FALSE FALSE FALSE FALSE F-ONMY + 111 TRUE TRUE FALSE FALSE FALSE FALSE F-ONNE KOKA + 112 TRUE TRUE TRUE TRUE FALSE FALSE F-ONNE + 113 TRUE TRUE TRUE TRUE FALSE FALSE F-ONTS + 114 TRUE TRUE FALSE TRUE FALSE FALSE F-PRCO-03 + 115 TRUE TRUE FALSE TRUE FALSE FALSE F-PRCO PGWH + 116 TRUE TRUE FALSE TRUE FALSE FALSE F-PRCY RNWH + 117 TRUE TRUE FALSE TRUE FALSE FALSE F-PRWI MNWH + 118 cyclindraceum TRUE TRUE FALSE TRUE FALSE FALSE + 119 TRUE FALSE TRUE FALSE FALSE FALSE F-SASA + 120 TRUE FALSE TRUE FALSE FALSE FALSE F-SATR BNTR + 121 TRUE FALSE FALSE FALSE FALSE FALSE F-SATR BNTR + 122 TRUE TRUE TRUE TRUE TRUE FALSE + 123 TRUE TRUE TRUE FALSE FALSE FALSE + 124 TRUE TRUE TRUE FALSE TRUE FALSE F-SACO BLTR + 125 TRUE TRUE FALSE FALSE TRUE FALSE F-SACO BLTR + 126 TRUE FALSE TRUE FALSE FALSE FALSE F-SAFO BKTR + 127 TRUE FALSE FALSE FALSE FALSE FALSE F-SAFO BKTR + 128 namaycush TRUE FALSE FALSE FALSE FALSE FALSE + 129 TRUE TRUE TRUE TRUE FALSE FALSE F-SAMA DLVR + 130 TRUE TRUE FALSE TRUE FALSE FALSE F-SAMA DLVR + 131 confluentus TRUE TRUE TRUE TRUE FALSE FALSE + 132 TRUE TRUE FALSE TRUE FALSE FALSE F-SANA LKTR + 133 TRUE TRUE TRUE FALSE TRUE FALSE F-STLU + 134 TRUE TRUE FALSE TRUE FALSE FALSE F-THAR ARGR + 135 TRUE TRUE FALSE TRUE TRUE TRUE + 136 TRUE TRUE TRUE FALSE FALSE FALSE + 137 TRUE TRUE TRUE FALSE FALSE FALSE F-CLAC + 138 TRUE TRUE FALSE TRUE FALSE FALSE F-COAL + 139 TRUE TRUE FALSE FALSE FALSE TRUE F-COSP-02 + 140 TRUE TRUE FALSE TRUE FALSE FALSE F-COAS PRSC + 141 TRUE TRUE FALSE FALSE TRUE FALSE + 142 TRUE TRUE FALSE FALSE FALSE FALSE + 143 TRUE TRUE FALSE TRUE FALSE FALSE F-COCO SLSC + 144 TRUE TRUE FALSE FALSE TRUE FALSE F-COCN + 145 TRUE TRUE FALSE FALSE TRUE FALSE F-COHU + 146 TRUE TRUE FALSE TRUE FALSE FALSE F-CORH + 147 TRUE TRUE FALSE TRUE FALSE FALSE F-CORI SPSC + 148 TRUE TRUE FALSE FALSE FALSE TRUE F-COSP-04 RMSC + 149 TRUE TRUE TRUE FALSE FALSE FALSE F-LEAR + 150 TRUE TRUE FALSE FALSE FALSE FALSE + 151 TRUE FALSE FALSE FALSE FALSE FALSE + 152 TRUE FALSE FALSE FALSE FALSE FALSE F-AMME + 153 TRUE FALSE FALSE FALSE FALSE FALSE F-ICNA + 154 TRUE FALSE FALSE FALSE FALSE FALSE F-AMNE + 155 TRUE TRUE TRUE TRUE FALSE TRUE + 156 TRUE TRUE TRUE TRUE FALSE FALSE F-LAAY + 157 TRUE TRUE FALSE FALSE FALSE TRUE F-ENMA + 158 TRUE TRUE FALSE TRUE FALSE FALSE F-LARC + 159 TRUE TRUE FALSE FALSE FALSE TRUE F-LARC-01 + 160 TRUE TRUE TRUE FALSE FALSE FALSE + 161 TRUE TRUE TRUE TRUE FALSE FALSE F-ENTR + diff --git a/tests/testthat/test-ab.R b/tests/testthat/test-ab.R index de6c7a3..38a7b33 100644 --- a/tests/testthat/test-ab.R +++ b/tests/testthat/test-ab.R @@ -1,5 +1,10 @@ test_that("ab", { - expect_true(chk::vld_s3_class(ab, "data.frame")) + expect_true(chk::vld_data(ab)) + + expect_snapshot({ + print(ab, width = 200, n = 200) + }) + expect_true(chk::vld_subset(c("Species Common Name", "Scientific Name", "Species Code"), colnames(ab))) expect_true(chk::vld_s3_class(ab$`Species Common Name`, "character")) diff --git a/tests/testthat/test-cdc.R b/tests/testthat/test-cdc.R index 8c64b87..19ba1b7 100644 --- a/tests/testthat/test-cdc.R +++ b/tests/testthat/test-cdc.R @@ -1,5 +1,10 @@ test_that("cdc", { - expect_true(chk::vld_s3_class(cdc, "data.frame")) + expect_true(chk::vld_data(cdc)) + + expect_snapshot({ + print(cdc, width = 200, n = 200) + }) + expect_true(chk::vld_subset(c("Species Code", "BC List"), colnames(cdc))) expect_true(chk::vld_s3_class(cdc$`Species Code`, "character")) diff --git a/tests/testthat/test-freshwaterfish.R b/tests/testthat/test-freshwaterfish.R index 2546b76..fce88e0 100644 --- a/tests/testthat/test-freshwaterfish.R +++ b/tests/testthat/test-freshwaterfish.R @@ -1,5 +1,10 @@ test_that("freshwaterfish", { - expect_true(chk::vld_s3_class(freshwaterfish, "data.frame")) + + expect_true(chk::vld_data(freshwaterfish)) + + expect_snapshot({ + print(freshwaterfish, width = 200, n = 200) + }) expect_true(chk::vld_identical( colnames(freshwaterfish), @@ -13,24 +18,6 @@ test_that("freshwaterfish", { ) )) - expect_true(chk::vld_s3_class(freshwaterfish$Code, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$CommonName, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Class, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Order, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Family, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Genus, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Species, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Subspecies, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Species2, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$Extant, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$Native, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$Marine, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$Yellow, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$Blue, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$Red, "logical")) - expect_true(chk::vld_s3_class(freshwaterfish$CDCode, "character")) - expect_true(chk::vld_s3_class(freshwaterfish$ABCode, "character")) - expect_true(chk::vld_not_any_na(freshwaterfish$Code)) expect_true(chk::vld_not_any_na(freshwaterfish$CommonName)) expect_true(chk::vld_not_any_na(freshwaterfish$Extant)) @@ -58,6 +45,6 @@ test_that("freshwaterfish", { expect_true(!anyDuplicated(unique(freshwaterfish[!is.na(freshwaterfish$Family), c("Order", "Family")])$Family)) expect_true(!anyDuplicated(unique(freshwaterfish[!is.na(freshwaterfish$Order), c("Class", "Order")])$Order)) - expect_error(chk::chk_join(freshwaterfish[!is.na(freshwaterfish$ABCode),], ab, by = c("ABCode" = "Species Code")), NA) - expect_error(chk::chk_join(freshwaterfish[!is.na(freshwaterfish$CDCode),], cdc, by = c("CDCode" = "Species Code")), NA) + expect_true(chk::vld_data(chk::chk_join(freshwaterfish[!is.na(freshwaterfish$ABCode),], ab, by = c("ABCode" = "Species Code")))) + expect_true(chk::vld_data(chk::chk_join(freshwaterfish[!is.na(freshwaterfish$CDCode),], cdc, by = c("CDCode" = "Species Code")))) })