mute_insufficient: In years and regions with only an unsufficient number of data...

View source: R/mute_insufficient.R

mute_insufficientR Documentation

In years and regions with only an unsufficient number of data points set all data points to NA

Description

This function counts data points (per region, year, scenario) and sets them to NA if the count is less than given in n_suff. This is useful to clean your data before fitting. No fit will be calculated where no data is available.

Usage

mute_insufficient(data, n_suff)

Arguments

data

MAgPIE object containing the samples to remove the duplicates from.

n_suff

Minial number (default=1) of data points that will be regarded as sufficient to perform a fit.

Value

Magpie object with duplicated samples set to NA.

Author(s)

David Klein


pik-piam/remulator documentation built on Oct. 19, 2023, 4:07 p.m.