occurrence2SPDF: Convert occurrence dataframe to a SpatialPointsDataFrame

Description Usage Arguments Value See Also Examples

Description

A simple helper function to convert a datframe containing occurrence data into a SpatialPointsDataFrame for use with other seegSDM functions.

Usage

1

Arguments

occurrence

A dataframe containing at least the columns Latitude and Longitude coordinates.

crs

The CRS for the occurrence data (default: projected WGS84).

Value

A SpatialPointsDataFrame containing the dataframe occurrence.

See Also

SpatialPointsDataFrame, checkOccurrence

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# load the occurrence dataframe
data(occurrence)

class(occurrence)
head(occurrence)

#convert to an SPDF
occ <- occurrence2SPDF(occurrence)

class(occ)
head(occ)

SEEG-Oxford/seegSDM documentation built on May 9, 2019, 11:08 a.m.