weight.adjust | R Documentation |
This function takes the point weights data frame output from the function weight()
and a SpatialPolygonsDataFrame defining the weight categories. Returns the data frame supplied as points with the new column ADJWGT
containing the adjusted weights.
weight.adjust(
points,
wgtcat.spdf,
spdf.area.field = "AREA.HA.UNIT.SUM",
spdf.wgtcat.field = "UNIQUE.IDENTIFIER",
projection = sp::CRS("+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs")
)
points |
Data frame output from |
wgtcat.spdf |
SpatialPolygonsDataFrame describing the weight categories for adjusting the weights. Use the output from |
spdf.area.field |
Character string defining the field name in |
spdf.wgtcat.field |
Character string defining the field name in |
projection |
|
weight.adjuster()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.