rearrangeFiles: Rearrange GIMMS NDVI3g.v0 Files

View source: R/rearrangeFiles.R

rearrangeFilesR Documentation

Rearrange GIMMS NDVI3g.v0 Files

Description

Rearrange local GIMMS NDVI3g.v0 files in ascending order of time. Since the naming convention has significantly changed towards NDVI3g.v1, such a measure should only be relevant for older file formats.

Usage

rearrangeFiles(
  x,
  dsn = getwd(),
  pattern = "^geo.*.VI3g$",
  pos = c(4, 6, 11),
  ...
)

Arguments

x

character. Vector of local filepaths. If missing, 'dsn' will be searched for available files via pattern matching.

dsn

character, defaults to the current working directory. Path to look for GIMMS-related data if 'x' is missing.

pattern

character, defaults to "^geo.*.VI3g$" for standard NDVI3g.v0 files. A regular expression passed to list.files.

pos

integer, defaults to c(4, 6, 11) for standard NDVI3g.v0 files. The start positions of year, month and part of the month ('a' or 'b') in the target GIMMS files.

...

Further arguments passed to list.files.

Value

A character vector of filepaths arranged in ascending order of time.

See Also

list.files


environmentalinformatics-marburg/gimms documentation built on Aug. 20, 2023, 3:02 p.m.