dates_from_files: Extract dates from file names

View source: R/dates-manipulation.R

dates_from_filesR Documentation

Extract dates from file names

Description

Extract dates from file names

Usage

dates_from_files(x, quietly = TRUE, sort_dates = FALSE)

Arguments

x

charcter

quietly

logical. If TRUE, function evaluates without displaying customary messages.

sort_dates

logical. Should the results of the dates be sorted chronologically?

Value

a vector of class Date

See Also

Other date manipulation: complete_dates()

Examples

dates_from_files("MERGE_CPTEC_20201201.grib2")
dates_from_files("brick-ETo-25km-19800101-20170731.nc")


lhmet/lhmetools documentation built on July 26, 2024, 1:48 p.m.