is_sensitive_at: Calculate sensitivity from a sdc_raster at x,y locations.

View source: R/is_sensitive_at.R

is_sensitive_atR Documentation

Calculate sensitivity from a sdc_raster at x,y locations.

Description

Calculate 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).

Usage

is_sensitive_at(x, xy, ...)

Arguments

x

sdc_raster()

xy

matrix of x and y coordinates, or a SpatialPoints or SpatialPointsDataFrame object

...

Arguments passed on to is_sensitive

max_risk

a risk value higher than max_risk will be sensitive.

min_count

a count lower than min_count will be sensitive.

risk_type

what kind of measure should be used (see details).

Value

logical vector with

See Also

Other sensitive: disclosure_risk(), is_sensitive(), plot_sensitive(), remove_sensitive(), sdc_raster(), sensitivity_score()

Examples


production <- sdc_raster(enterprises, "production")

# add the sensitive variable to original data set.
enterprises$sensitive <- is_sensitive_at(production, enterprises)


sdcSpatial documentation built on March 24, 2022, 5:05 p.m.