Learn R Programming

biogeo (version 1.0)

addmainfields: Adds required fields to a dataframe containing coordinates for points

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. This function adds these columns to the dataframe.

Usage

addmainfields(dat,species)

Arguments

dat
a dataframe containing coordinates for a set of points (collection localities)
species
the name of the field containing the species names

Value

See Also

checkdatastr, renamefields, keepmainfields

Examples

Run this code
dat1<-dat[,1:4]
addmainfields(dat1,species="Species")

Run the code above in your browser using DataLab