data_chomp {gatoRs} | R Documentation |
Subset Data - Get species, longitude, and latitude columns
Description
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.
Usage
data_chomp(
df,
accepted.name = NA,
longitude = "longitude",
latitude = "latitude"
)
Arguments
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. |
Details
This function requires the package dplyr.
Value
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.
Examples
chomped_data <- data_chomp(data, accepted.name = "Galax urceolata")
[Package gatoRs version 1.0.2 Index]