data_chomp | R Documentation |
The data_chomp()
function "chomps" (subsets) a data frame of occurrence records to only
contain the following columns: "species", "longitude", and "latitude". After using this
function data will be ready for use in Maxent, for example.
data_chomp(
df,
accepted.name = NA,
longitude = "longitude",
latitude = "latitude"
)
df |
Data frame of occurrence records returned from |
accepted.name |
The accepted species name for the records. |
longitude |
Default = "longitude". The name of the longitude column in the data frame. |
latitude |
Default = "latitude". The name of the latitude column in the data frame. |
This function requires the package dplyr.
Returns data frame with three columns: "species", "longitude", and "latitude". The "species" column is set by the accepted.name input. This data frame is ready for downstream applications such as Maxent.
chomped_data <- data_chomp(data, accepted.name = "Galax urceolata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.