convert_gbif: Reformats GBIF data into 'dynamicSDM' data frame

View source: R/convert_gbif.R

convert_gbifR Documentation

Reformats GBIF data into dynamicSDM data frame

Description

Function converts GBIF occurrence records into the format required for dynamicSDM functions.

Usage

convert_gbif(gbif.df)

Arguments

gbif.df

a data frame, the direct output from GBIF occurrence record download.

Details

For most dynamicSDM functions, an occurrence data frame with record co-ordinate columns labelled "x" and "y" with numeric columns for record "day", "month" and "year" are required. This function takes the input data frame and returns a reformatted data frame suitable for direct input into dynamicSDM functions.

Value

Returns data frame correctly formatted for input into dynamicSDM functions.

Examples


data(sample_occ_data)
converted <- convert_gbif(sample_occ_data)


dynamicSDM documentation built on June 28, 2024, 5:08 p.m.