Learn R Programming

sdcSpatial (version 0.6.1)

enterprises: Simulated data set with enterprise locations.

Description

enterprises is generated from the dutch open data BAG register. The locations are realistic, but the associated data is simulated.

Usage

enterprises

Arguments

Format

An object of class SpatialPointsDataFrame with 8348 rows and 2 columns.

production

numeric simulated production (lognormal).

fined

logical simulated variable if an enterprise is fined or not.

Examples

Run this code
# \donttest{
library(sdcSpatial)
library(raster)

data("enterprises")

production <- sdc_raster(enterprises, "production", min_count = 10)
print(production)

# show the average production per cell
plot(production, "mean")
production$min_count <- 2 # adjust norm for sdc
plot(production)

production_safe <- remove_sensitive(production)
plot(production_safe)
# }

Run the code above in your browser using DataLab