sp_temporal_data: Function create a Species Temporal Data object (STD object).

Description Usage Arguments Value

View source: R/sp_temporal_data.R

Description

This function creates Species Temporal Data object.

Usage

1
2
3
4
5
6
7
8
9
sp_temporal_data(
  occs = NA,
  longitude = NULL,
  latitude = NULL,
  sp_year_var = NA,
  layers_by_year_dir = NA,
  layers_ext = "*.tif$",
  reclass_year_data = TRUE
)

Arguments

occs

A data.frame or a SpatialPointsDataFrame with coordinates of the occurrence records. The data must have a time variable indicating the year of each observation.

longitude

If occs is a data.frame the user must indicate the variable name of logitude data.

latitude

If occs is a data.frame the user must indicate the variable name of latitude data.

sp_year_var

A time variable indicating the year of each observation.

layers_by_year_dir

El directorio que contiene las carpetas donde estan las capas raster que se usaran para modelar; estas deben estar clasificadas por anio.

layers_ext

Extension de los archivos de las capas raster.

reclass_year_data

Logical. If TRUE, occurrence data whose years are not in the environmental layers will be reclassified to the nearest year in the layers. Other wise they will not be used for modeling.

Value

Returns un sp.temporal.modeling object (list) con las coordenadas de los puntos de presencia, los anios las observaciones, el path de las capas temporales.


luismurao/hsi documentation built on Dec. 26, 2021, 9:53 a.m.