remove_sensitive removes sensitive cells from a
The sensitive cells, as found by
is_sensitive() are set to NA.
remove_sensitive(x, max_risk = x$max_risk, min_count = x$min_count, ...) mask_sensitive(x, max_risk = x$max_risk, min_count = x$min_count, ...)
a risk value higher than
a count lower than
passed on to
Removing sensitive cells is a protection method, which often is useful to
finalize map protection after other protection methods have been applied.
remove_sensitive are synonyms, to accommodate both
raster users as well as sdc users.
sdc_raster object with sensitive cells set to
Other protection methods:
library(raster) unemployed <- sdc_raster(dwellings[1:2], dwellings$unemployed, r=200) # plot the normally rastered data plot(unemployed, zlim=c(0,1)) plot_sensitive(unemployed) unemployed_safe <- remove_sensitive(unemployed, risk_type="discrete") plot_sensitive(unemployed_safe, zlim=c(0,1)) print(unemployed) unemployed$value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.