compare_variables_in_inventory: Compare an EURO-CORDEX inventory for different variables

View source: R/compare_variables_in_inventory.R

compare_variables_in_inventoryR Documentation

Compare an EURO-CORDEX inventory for different variables

Description

Casts the result from get_inventory for different variables in order to compare completeness of the inventory. Adds columns for checking equality of years and number of files.

Usage

compare_variables_in_inventory(data_inventory, vars = NULL)

Arguments

data_inventory

A data.table as resulting from get_inventory.

vars

Character vector of variables to compare. If NULL, will use all variables in data_inventory.

Value

The casted data.table with boolean columns if all years and number of files are equal for all variables.

Examples

## Not run: 

path <- "/mnt/CEPH_BASEDATA/METEO/SCENARIO"
dat <- get_inventory(path)
dat_compare <- compare_variables_in_inventory(dat, c("tas","rsds","pr"))

## End(Not run)

eurocordexr documentation built on Aug. 24, 2023, 9:07 a.m.