Calculate sensitivity from a sdc_raster at x,y locations.
Source:R/is_sensitive_at.R
is_sensitive_at.RdCalculate sensitivity from a sdc_raster at x,y locations.
A typical use is to calculate the sensitivity for each of the locations x
was created with (see example).
Arguments
- x
- xy
matrix of x and y coordinates, or a SpatialPoints or SpatialPointsDataFrame object
- ...
Arguments passed on to
is_sensitivemax_riska risk value higher than
max_riskwill be sensitive.min_counta count lower than
min_countwill be sensitive.risk_typewhat kind of measure should be used (see details).
See also
Other sensitive:
disclosure_risk(),
is_sensitive(),
plot_sensitive(),
remove_sensitive(),
sdc_raster(),
sensitivity_score()
Examples
# \donttest{
production <- sdc_raster(enterprises, "production")
# add the sensitive variable to original data set.
enterprises$sensitive <- is_sensitive_at(production, enterprises)
#> Warning: longer object length is not a multiple of shorter object length
#> Warning: Transforming SpatialPoints to the crs of the Raster
# }