sdcSpatial

Create privacy protected maps with R

https://github.com/edwindj/sdcspatial

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Create privacy protected maps with R

Basic Info
Statistics
  • Stars: 8
  • Watchers: 2
  • Forks: 1
  • Open Issues: 11
  • Releases: 0
Created about 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```
[![CRAN status](https://www.r-pkg.org/badges/version/sdcSpatial)](https://cran.r-project.org/package=sdcSpatial)
[![R build status](https://github.com/edwindj/sdcSpatial/workflows/R-CMD-check/badge.svg)](https://github.com/edwindj/sdcSpatial/actions)
[![](https://cranlogs.r-pkg.org/badges/sdcSpatial)](https://cran.r-project.org/package=sdcSpatial)
[![status](https://tinyverse.netlify.com/badge/sdcSpatial)](https://CRAN.R-project.org/package=sdcSpatial)
[![Mentioned in Awesome Official Statistics](https://awesome.re/mentioned-badge.svg)](http://www.awesomeofficialstatistics.org)

# sdcSpatial

_Publishing a raster density map can reveal sensitive values_.
`sdcSpatial` is an opensource R package for creating spatial density (raster) 
maps from point data while protecting the privacy of individual observations. 

`sdcSpatial` offers a `sdc_raster` class that allows to:

- find out which locations are considered sensitive / unsafe for publishing: `plot_sensitive`, `is_sensitive`, `sensitivity_score`.
- apply protection methods that reduce sensitiviy and enhance spatial patterns: `protect_smooth`, `protect_quadtree`.
- remove sensitive locations: `remove_sensitive`.
- extract relative as well as absolute density `raster`s that can be used with visualisation packages, such as `tmap` and `leaflet`: `x$value$mean`, `x$value$sum`, `mean`, `sum`.

## Installation

```r
install.packages("sdcSpatial")
```

To install the current development version of  `sdcSpatial`  with `devtools`

```r
remotes::install_github("edwindj/sdcSpatial")
```

## Example

```{r example, code=head(readLines("./example/protect_smooth.R")[-1],-1)}
```

Owner

  • Name: Edwin de Jonge
  • Login: edwindj
  • Kind: user
  • Location: @edwindjonge
  • Company: Statistics Netherlands (CBS)

ORCID: 0000-0002-6580-4718

GitHub Events

Total
  • Issues event: 2
  • Issue comment event: 2
  • Push event: 13
Last Year
  • Issues event: 2
  • Issue comment event: 2
  • Push event: 13

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 130
  • Total Committers: 1
  • Avg Commits per committer: 130.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 7
  • Committers: 1
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Edwin de Jonge e****e@g****m 130

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 14
  • Total pull requests: 0
  • Average time to close issues: 3 months
  • Average time to close pull requests: N/A
  • Total issue authors: 3
  • Total pull request authors: 0
  • Average comments per issue: 0.21
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: about 2 months
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • edwindj (10)
  • mamoeh (3)
  • rsbivand (1)
Pull Request Authors
Top Labels
Issue Labels
enhancement (10) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 266 last-month
  • Total docker downloads: 34
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: sdcSpatial

Statistical Disclosure Control for Spatial Data

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 266 Last month
  • Docker Downloads: 34
Rankings
Stargazers count: 21.1%
Forks count: 21.9%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 36.1%
Downloads: 72.2%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • methods * imports
  • raster * imports
  • FNN * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • sf * suggests
  • sp * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite