makeLociList: Convert a list of 'SpatialPointsDataFrame' object to a list...

Description Usage Arguments Value

View source: R/makeLociList.R

Description

Must supply a raster so that points can be converted to the cells on a raster. It is assumed that the sizeCol is accurate. If not, it should be recalculated before this function call.

Usage

1
2
3
4
5
6
7
8
makeLociList(
  ras,
  pts,
  idsCol = "NFIREID",
  dateCol = "YEAR",
  sizeCol = "POLY_HA",
  sizeColUnits = "ha"
)

Arguments

ras

A raster that will be the template for cells (pixel ids)

pts

A list of SpatialPointsDataFrame objects

idsCol

Character string identifying column name in pts that has unique id per event (i.e., fire)

dateCol

Character string identifying column name in pts that has year

sizeCol

Character string identifying column name in pts that has size of individual event. Can be in hectares or metres squared. Should set sizeColUnits

sizeColUnits

Character string. Either "ha" or "m2".

Value

A list of data.table objects, each with 4 columns, "size" (in pixels), "date", "ids" from idsCol, and "cells", which are the pixel indices of the pts points.


PredictiveEcology/fireSenseUtils documentation built on Sept. 18, 2020, 1:58 a.m.