monthlyIndices: Create timestamps or monthly indices from CHIRPS files

Description Usage Arguments Value Author(s)

View source: R/monthlyIndices.R

Description

Extract time information or, based upon this, monthly indices from regularly named CHIRPS files (compressed or decompressed).

Usage

1
monthlyIndices(x, pos1 = 13L, pos2 = 22L, timestamp = FALSE, ...)

Arguments

x

'character'. Input filename(s).

pos1, pos2

'integer'. The first and last element of the date string in 'x', defaults to the CHIRPS naming convention; see substr.

timestamp

'logical'. If TRUE, an actual timestamp (formatted according to ...) is returned rather than a vector of indices.

...

Further arguments passed on to strftime.

Value

An 'integer' vector with unique monthly indices or, if timestamp = TRUE, a character vector with formatted timestamps.

Author(s)

Florian Detsch


environmentalinformatics-marburg/heavyRain documentation built on Sept. 1, 2020, 9:53 a.m.