check.completeness.list: Checking for N complete years of data

View source: R/ts.R

check.completeness.listR Documentation

Checking for N complete years of data

Description

Removes all class xts time series from a list, which are not of at least number.of.years complete years of data.

Usage

## S3 method for class 'list'
check.completeness(x, number.of.years = 30,
  mc.cores = NULL)

Arguments

x

A list of xts class objects.

number.of.years

The minimum number of complete years in the series. Default = 30.

mc.cores

A numerical input specifying the number of cores to use for the multi core application of the function (see detectCores). This functionality is only available if the input is a list of different objects. If NULL, the function will be calculated classically with only one core. Default = NULL.

Value

Trimmed list containing only those elements, which indeed have more than N years of complete data.

Author(s)

Philipp Mueller


theGreatWhiteShark/climex documentation built on July 13, 2022, 9:11 a.m.