Description Usage Arguments Value Author(s) See Also Examples
Several functions require a particular set of columns in the dataframe with specific names. If the columns in the dataframe do not have these names then they can be renamed. The fields that can be renamed include: ID (unique identifiers), x (x-coordinate), y (y-coordinate), Species (the species names column)
1 | renamefields(dat, ID = "ID", x = "x", y = "y", Species = "Species")
|
dat |
a dataframe containing the point records dataset |
ID |
the identifiers column |
x |
the x-coordinates (longitude) in decimal degrees |
y |
the y-coordinates (latitude) in decimal degrees |
Species |
the species names |
a dataframe in which the selected fields have been renamed
Mark Robertson
checkdatastr, addmainfields
1 2 | dat<-data.frame(places,Speciesnames="")
a<-renamefields(dat, ID = "id", x = "long", y = "lat", Species = "Speciesnames")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.