nzffdr_clean {nzffdr}R 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)


[Package nzffdr version 2.1.0 Index]