nzffdr_import {nzffdr} | R Documentation |
Import NZ Freshwater Fish datasets.
Description
Import data from the NZ Freshwater Fish Database. Enter search terms as arguments as you would in the NZFFD and import directly into R. You can search using all the same query options which are used for in the NZFFFD, see their info page for details. To import the entire database leave all arguments as default.
Usage
nzffdr_import(
institution = "",
catchment_num = "",
catchment_name = "",
water_body = "",
fish_method = "",
taxon = "",
starts = "",
ends = "",
download_format = "all"
)
Arguments
institution |
institution that collected the data. Use the
|
catchment_num |
catchment number. A 6 digit number unique to the reach of
interest. You can search using the individual number (e.g. |
catchment_name |
catchment name. e.g. |
water_body |
water body name. e.g. to get all records for Limestone
Creek, |
fish_method |
fishing method used. Use the |
taxon |
taxon of interest. Use the |
starts |
start year. Don't set the arg if you want all records in the database. |
ends |
end year. Don't set the arg if you want all records in the database. |
download_format |
use "all" or "essential" to download either, all variables (67 columns), which now includes some River Environment Classification data, or just essential data (23 columns). |
Details
This function requires an internet connection to query NIWA's database.
Data citation: Stoffels R (2022). New Zealand Freshwater Fish Database (extended). The National Institute of Water and Atmospheric Research (NIWA). Sampling event dataset https://doi.org/10.15468/jbpw92
Value
A dataframe where each row is a NZFFD record.
Examples
## Not run:
# import entire NZFFD
dat <- nzffdr_import()
## End(Not run)