Parse and examine further GBIF issues on a dataset.

Description

Usage

Arguments

Output from a call to occ_search, but only if return="all",
or return="data", otherwise function stops with error

...

Named parameters to only get back (e.g., cdround), or to remove (e.g. -cdround).

mutate

(character) One of:

split Split issues into new columns.

split_expand Split into new columns, and expand issue names.

expand Expand issue abbreviated codes into descriptive names.

For split and split_expand, values in cells become y ("yes") or n ("no").

Details

See also the vignette Cleaning data using GBIF issues.

Note that you can also query based on issues, e.g.,
occ_search(taxonKey=1, issue='DEPTH_UNLIKELY'). However, I imagine it's more likely
that you want to search for occurrences based on a taxonomic name, or geographic area,
not based on issues, so it makes sense to pull data down, then clean as needed
using this function.

This function only affects the data element in the gbif class that is
returned from a call to occ_search. Maybe in a future version
we will remove the associated records from the hierarchy and media
elements as they are remove from the data element.