weight.gen | R Documentation |
Calculate the weight for points in a sample design based on the sample frame or strata used to draw them and the point fate. The outputs are a data frame of the points and their weights, a data frame summary of the fates of the points (optionally by year), and a data frame summary of the strata (optionally by year) if strata were used. No spatial checks are done, so make sure that pts
and frame.spdf
are from the same design, limited to the extent of the original sample frame, and have complete overlap.
weight.gen(
pts,
pts.fatefield = NULL,
pts.groupfield = NULL,
frame.spdf,
frame.groupfield = NULL,
target.values = NULL,
unknown.values = NULL,
nontarget.values = NULL,
inaccessible.values = NULL,
unneeded.values = NULL
)
pts |
Data frame or spatial points data frame. This should be the points information. At minimum, it must contain a field matching the string |
pts.fatefield |
Character string. This must exactly match the name of the field in |
pts.groupfield |
Optional character string. This must exactly match the name of the field in |
frame.spdf |
Spatial polygons data frame. This must be the design's sample frame or strata restricted to the sample frame extent. If providing |
frame.groupfield |
Optional character string. This must exactly match the name of the field in |
target.values |
Character string or character vector. This defines what values in the point fate field count as target points. When using AIM design databases, this should be at minimum |
unknown.values |
Character string or character vector. This defines what values in the point fate field count as unknown points. When using AIM design databases, this should be at minimum |
nontarget.values |
Character string or character vector. This defines what values in the point fate field count as non-target points. When using AIM design databases, this should be at minimum |
inaccessible.values |
Character string or character vector. This defines what values in the point fate field count as non-target points. When using AIM design databases, this should be at minimum |
unneeded.values |
Character string or character vector. This defines what values in the point fate field count as not needed or unneeded points. When using AIM design databases, this should be at minimum |
A list containing the named data frames frame.stats
, frame.summary
(if groupfield strings were provided), and point.weights
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.