Import, Clean and Update Data from the New Zealand Freshwater Fish Database
Overview
Access the New Zealand Freshwater Fish Database from R and a few functions to clean the data once in R.
Fixes associated with NZFFD search issue and some small tidying.
At the moment users should download the entire NZFFD, and then filter records from there. See note below.
NZFFD search issue
- Following reports of issues associated with using search fields in the NZFFD (see comments on page 4 of the help manual available here: https://niwa.co.nz/information-services/nz-freshwater-fish-database/help), nzffdr_import() now downloads the entire NZFFD by default (previously even when no search terms were entered not all results were being downloaded due to changes to the NZFFD portal).
- use any of the following to download the entire NZFFD (do not set additional arguments), and then filter in R as needed: nzffdr_import(download_format = "all"), nzffdr_import(download_format = "essential") or nzffdr_razzle_dazzle().
updated functions
- nzddr_import() & nzffdr_razzle_dazzle() now generate a warning regarding the NZFFD issue.
- nzffdr_add_dates() now much faster
- nzffdr_widen_habitat() no longer produces the "In fun_df(xx2, cl) : NAs introduced by coercion" warning by default.
Depreciated functions
Show all changes in 2.1.0Hide the rest of the changes in 2.1.0
- depreciated functions from nzffdr 2.0.0 have been removed (nzffdr_add() & nzffdr_fill())
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Finnbar Lee <lee.finnbar@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 10
- Examples that run
- 63%5 run in a plain check · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 432
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/flee598/nzffdr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-01-06 · The repository has a site deploy workflow
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.1.0Latest
- RR 4.2.0 released · 2022-04-22
- 2.0.02022-01-17 · diff ↗ ·
removed 2 exports
nzffd_clean, nzffd_importadded 8 exports
nzffdr_add_dates, nzffdr_clean, nzffdr_get_table, nzffdr_import, nzffdr_ind_lengths, nzffdr_razzle_dazzle, nzffdr_taxon_threat, nzffdr_widen_habitat - RR 4.1.0 released · 2021-05-18
- 1.0.02021-03-09
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-09
- Total releases
- 3 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 349 KB / 2 files
- Download size
- 639 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("nzffdr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1101/2021.06.22.449519.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.