Learn R Programming

MRG (version 0.3.21)

Create Non-Confidential Multi-Resolution Grids

Description

The need for anonymization of individual survey responses often leads to many suppressed grid cells in a regular grid. Here we provide functionality for creating multi-resolution gridded data, respecting the confidentiality rules, such as a minimum number of units and dominance by one or more units for each grid cell. The functions also include the possibility for contextual suppression of data. For more details see Skoien et al. (2025) .

Copy Link

Version

Install

install.packages('MRG')

Monthly Downloads

458

Version

0.3.21

License

GPL (>= 3)

Maintainer

Jon Skoien

Last Published

November 27th, 2025

Functions in MRG (0.3.21)

locAdjFun

Function that modifies the observation locations, to reduce the risk that they are on grid cell boundaries
inspireID

Function to add inspireIDs to a multi-resolution grid, particular for European data sets
multiResGrid

Create multi-resolution grids based on confidentiality or reliability restrictions
remSmall

Function that will move values from grid cells with small values to the ones with larger values for disclosure control reasons
MRGfromDF

Function to create a gridded (usually multi-resolution grid) from a data.frame or csv file with information about the corners and resolution, as typically can be downloaded from Eurostat. The function can also save the grid as a geo-object.
MRGpostProcess

Make some final adjustments to the multiresolution grids
createMRGobject

Create a single object containing all necessary objects for multiResGrid functions
gridData

Function that converts point data to gridded data (polygon values) or a list of gridded data
MRGoverlap

Function that finds and merges overlapping grid cells in a multi-resolution grid The need for this function comes from an error in the gridding process or how different grids have been stitched together, and it can be seen as symptom solving rather than solving the issue. This function will either just show the problematic grid cells or remove the overlaps.
MRGmerge

Merge two or more multi-resolution grids to a common resolution
ifs_dk

Test data sets for the MRG package
MRGplot

Convenience function based on ggplot2 to plot multi-resolution grids with some default suggestions For full flexibility it is better to use ggplot2 directly.The function can also be used for ordinary grids
fssgeo

Function that creates an sf-object from IFS data
MRGcluster

Function that allows to apply parallel processing