fieldsmissing: Determines whether any of the required fields are missing...

Description Usage Arguments Value Note Author(s) See Also Examples

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

1
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

Note

this function is used in pointsworld and several other functions

Author(s)

Mark Robertson and Vernon Visser

See Also

checkdatastr, addmainfields

Examples

1
2
data(dat)
fieldsmissing(dat,fields=c("ID","x","y"))

biogeo documentation built on May 1, 2019, 8:05 p.m.