Compare an EURO-CORDEX inventory for different variables
Source:R/compare_variables_in_inventory.R
compare_variables_in_inventory.Rd
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.
Arguments
- data_inventory
A data.table as resulting from
get_inventory
.- vars
Character vector of variables to compare. If
NULL
, will use all variables indata_inventory
.
Value
The casted data.table with boolean columns if all years and number of files are equal for all variables.
Examples
if (FALSE) { # \dontrun{
path <- "/mnt/CEPH_BASEDATA/METEO/SCENARIO"
dat <- get_inventory(path)
dat_compare <- compare_variables_in_inventory(dat, c("tas","rsds","pr"))
} # }