SIInBC: Derive site index for a given spatial coverage or a spatial...

View source: R/SIInBC.R

SIInBCR Documentation

Derive site index for a given spatial coverage or a spatial point

Description

This function is to derive species' site index for a given spatial coverage or spatial points based on BC provincial species productivity maps.

Usage

SIInBC(SIMapPath, spatialCoverage, species = "all", returnClass = "table")

Arguments

SIMapPath

character, Specifies folder location of species index maps. Please request all the maps from author and save them into your target folder. The function only supports TIFF format. Currently those maps were converted from BC Data catalogue.

spatialCoverage

spatialPolygons or spatialPoints, Specifies spatial polygons or spatial points that need to intersect.

species

character, Must be one or some of 22 species.

returnClass

character, Specifies the class you intended to return from either sp or table. If missing, table will be used.

Value

the returned value depends on returnClass arguement and class of spatialCoverage arguement. If returnClass is set as table, a table will be returned. If returnClass is set as sp, a raster layer will be returned for SpatialPolygons* objects, while a SpatialPointDataframe will be returned for SpatialPoints* objects.

Author(s)

Yong Luo


bcgov/FAIBBase documentation built on June 19, 2024, 11:57 p.m.