Takes a dataframe returned by an occurrence module or a raster object from a covariate module and converts the CRS to lat/long so that everything works together.

TransformCRS(occurrence, ras_projection)

Arguments

occurrence

The output of an occurrence module

ras_projection

The projection of a covariate layer as a character (from projection())

Value

The same object as in occurrence, but with CRS changed as needed