Description Usage Arguments Details Value Author(s) Examples
View source: R/getRidbytpolyFlag.R
Assign Thiessen Polygon ID to New Dataset
1 | getRidbytpolyFlag(tFlag, tpolyFl, pntlayer, isnearest = TRUE)
|
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 |
Assign Thiessen Polygon ID to New Dataset
rid: Thiessen polygon's id,same as used in the model
Lianfa Li
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"]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.