distedge: Calculate raster distance to an edge.

Description Usage Arguments Value Examples

Description

Calculate raster distance to an edge.

Usage

1
2
distedge(DT, rowvar = "hdfrow", colvar = "hdfcol",
  nonmissingmask = "revna")

Arguments

DT

a data.table

rowvar

character of the column name for row

colvar

character of the column name for column

nonmissingmask

character of the column name for the non missing mask

Value

vector of distance to edge.

Examples

1
2
3
4
5
 
aod20150211 <- merge(aod20150211, basegrid, by = "aodid", all.x = TRUE)
aod20150211[, revna := NA_integer_]
aod20150211[is.na(aod47), revna := 1]
distedge(aod20150211, rowvar = "hdfrow", colvar = "hdfcol", nonmissingmask = "revna")

allanjust/aodlur documentation built on May 10, 2019, 9:22 a.m.