filterNA: Remove missing values from grids

View source: R/filterNA.R

filterNAR Documentation

Remove missing values from grids

Description

Removes the dates for all grid points whenever there exists missing values (i.e., NaN or NA).

Usage

filterNA(grid)

Arguments

grid

The input grid to be filtered.

Details

The function also takes care of adjusting dates and other relevant metadata (via the internal subsetDimension).

Value

A new grid object without missing values

Author(s)

J. Bano-Medina, J. Bedia

See Also

Other downscaling.helpers: convert2bin(), makeMultiGrid()

Examples


require(climate4R.datasets)
data("VALUE_Iberia_pr")
# Check if the dataset contains missing values (YES):
anyNA(VALUE_Iberia_pr$Data)
getShape(VALUE_Iberia_pr)
na.filtered <- filterNA(VALUE_Iberia_pr)
# Check if the dataset contains missing values (NO):
anyNA(na.filtered$Data)
getShape(na.filtered)


SantanderMetGroup/transformeR documentation built on Nov. 25, 2024, 1:25 p.m.