Description Usage Arguments Value Note Author(s) References Examples
Spatial coordinates are anonymized by using three possible techniques of altering locations without loss of the spatial relationships between data. The three techniques are vertical, horizontal and rotational shifts. User defines how many steps to use in the anonymization. The actual steps taken are randomized and saved for later use.
1 2 |
data |
Can be either a 2 column |
depth |
numeric; the number of anonymization steps to take (levels of abstraction). Default is 3. |
rasterdata |
logical; If |
raster_object |
logical; If |
saveTangles |
logical; Save function output to file. Default is |
path |
character; Path to where outputs are saved. |
A list
object that contains: 1. The transformed coordinates or transformed raster object (dependent on the inputs). 2. A separate list object to be used for untangling the transformed coordinates. The outputs can be written to file to a specified directory with file stub names of tangledXY
and detangler
respectively.These files have a common hash key as part of their file name.The hash key is generated from the detangler object using the sha256 hash algorithm
Raster data can in practice be rotated for any given angle, yet the linear horizontal and vertical properties of the raster will be lost, meaning that no software will be able to recognize it as a raster. This why there is the rasterdata
parameter exists, and can be used for both raster and non-raster data. It just constrains the possible degree values that can be used in the anonymization. If raster data is being anonymized both rasterdata
and raster_object
will be set to TRUE
in most cases.
The most important output to come from this function is the detangler object (saved to file with unique hash key), as this encodes the anonymization steps that can be used for re-identification, or anonymization of associated data. This enables parties to share pertinent information without the requirement to share actual spatial coordinates.
tangles
is coordinate reference system agnostic. Anonymization will proceed regardless of whether data is in geographic or projected space. Anonymized coordinates will not exist in reality, but the spatial properties of the original data will be maintained.
Brendan Malone
CM O'Keefe, S Otorepec, M Elliot, E Mackey, and K O'Hara (2017) The De-Identification Decision Making Framework. CSIRO Reports EP173122 and EP175702.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## POINT DATA
library(digest)
data("HV_subsoilpH")
str(HV_subsoilpH)
dat.xy<- HV_subsoilpH[,1:2]
xyData<- as.matrix(dat.xy)
# anonymize with 5 levels of abstraction
tangles.out<- tangles(data = xyData,
depth = 5,
rasterdata = FALSE,
raster_object = FALSE,
saveTangles = FALSE)
str(tangles.out)
head(tangles.out[[1]])
## RASTER DATA
library(raster)
data("hunterCovariates_sub")
str(hunterCovariates_sub)
raster_object<- hunterCovariates_sub
tangles.out<- tangles(data = hunterCovariates_sub,
depth = 5,
rasterdata = TRUE,
raster_object = TRUE,
saveTangles = FALSE)
str(tangles.out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.