getRidbytpolyFlag: Assign Thiessen Polygon ID to New Dataset

Description Usage Arguments Details Value Author(s) Examples

View source: R/getRidbytpolyFlag.R

Description

Assign Thiessen Polygon ID to New Dataset

Usage

1
getRidbytpolyFlag(tFlag, tpolyFl, pntlayer, isnearest = TRUE)

Arguments

tFlag

project flag

tpolyFl

Thiessen polygon's name

pntlayer

Target shapefile to be assigned

isnearest

Whether nearest neighbors used to assign the items without id

Details

Assign Thiessen Polygon ID to New Dataset

Value

rid: Thiessen polygon's id,same as used in the model

Author(s)

Lianfa Li

Examples

1
2
3
4
5
6
## This example is to illustrate to assging

data(sc_sample,sc_sample_loc)
sc_sample_loc$rid500m=getRidbytpolyFlag(tFlag="sc_sample",tpolyFl="sp_polys_500m_sel",sc_sample_loc)
index=match(sc_sample$gid,sc_sample_loc$gid)
sc_sample$rid500m=sc_sample_loc@data[index,"rid500m"]

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.