enact_privacy_rule: Apply the confidentiality rule to spatial data. Copied from...

View source: R/utils-enact-privacy-rule.R

enact_privacy_ruleR Documentation

Apply the confidentiality rule to spatial data. Copied from the gfplot package

Description

Apply the confidentiality rule to spatial data. Copied from the gfplot package

Usage

enact_privacy_rule(dat, bin_width, n_minimum_vessels, x_lim, y_lim)

Arguments

dat

Data from gfdata::get_cpue_spatial(), gfdata::get_cpue_spatial_ll(), or gfdata::get_catch_spatial()

bin_width

Bin width as defined in ggplot2::stat_summary_hex()

n_minimum_vessels

The minimum number of vessels that must be present in a hexagon for the hexagon to be shown

x_lim

The length-2 vector representing the minimum and maximum limits of the x-axis

y_lim

The length-2 vector representing the minimum and maximum limits of the y-axis

Details

Removes data which does not satisfy the confidentiality rules; the minimum number of vessels with catch in a specific area

Value

A list containing 1) the data frame dat but with rows removed that do not fulfill the privacy limitations, 2) The total number of fishing events removed due to privacy limitations, and 3) The total number of fishing events in dat


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.