nzffdr_clean: Clean NZ Freshwater Fish Datasets

View source: R/nzffdr_clean.R

nzffdr_cleanR Documentation

Clean NZ Freshwater Fish Datasets

Description

Clean up data imported from the NZ Freshwater Fish Database.

Usage

nzffdr_clean(fishd)

Arguments

fishd

a dataframe imported from the NZFFD using nzffdr_import()

Details

Cleans up a few inconsistencies in the NZFFD data returned from nzffd_import(). Column types are checked and converted to, integer, numeric or character. Empty cells are filled with NA, variable 'catchmentName' entries are standardised (e.g. Clutha r, Clutha River and Clutha R all become Clutha R) and, any empty columns are removed.

Value

A cleaned NZFFD dataframe.

Examples

nzffdr_clean(nzffdr::nzffdr_data)


nzffdr documentation built on Nov. 10, 2022, 5:51 p.m.