keepmainfields: Keep main fields in a dataframe.

Description Usage Arguments Value Author(s) See Also Examples

Description

Select main fields required by biogeo.

Usage

1
keepmainfields(dat, ID = "", Species = "", x = "", y = "", others = "")

Arguments

dat

A dataframe containing records including an identifier field, a species name field, x- and y-coordinates fields and any other fields.

ID

The unique identifier field

Species

The field containing the species names

x

x-coordinate in decimal degrees

y

y-coordinate in decimal degrees

others

Names of other fields that should be retained in the dataframe

Value

A dataframe containing the selected fields.

Author(s)

Vernon Visser and Mark Robertson

See Also

addmainfields, renamefields, checkdatastr

Examples

1
2
names(gbifdat)
dat3 <- keepmainfields(gbifdat, Species='species', x='decimallongitude', y='decimallatitude')

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