Extract a series of dates from the layers named in a rasterBrick or a vector of strings containing dates.
get_date(x, pattern, date_format)
Arguments
- x
rasterBrick or a vector of dates, from which to extract the dates of the time-series.
- pattern
string or characters to remove from the date name (remove the character "X" from "X2001.07.15")
- date_format
format of the date
Details
internal function to retrieve data from names.