fieldsmissing:
Determines whether any of the required fields are missing from the dataframe
Description
Several functions require a particular set of columns with specific names. The required fields are: ID, x, y, Species, x_original, y_original, Correction, Modified, Reason and Exclude. Required fields that are missing can be added using addmainfields.
Usage
fieldsmissing(dat, fields)
Arguments
dat
a dataframe containing several columns, including the x- and y-coordinates
fields
a character vector of the field names that are required
Value
An error is returned if any of the fields are missing