parse_raster_dates: Parses the names attached to a Raster from...

Description Usage Arguments Value Examples

View source: R/ebirdst-loading.R

Description

The label_raster_stack() function labels the dates of the estimate rasters in the format of "XYYYY.MM.DD", because of constraints in the raster package. This function converts that character vector into an ISO compliant Date vector.

Usage

1

Arguments

x

Raster object; full or subset of original eBird Status and Trends product raster GeoTIFF.

Value

Date vector.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# download and load example abundance data
sp_path <- ebirdst_download("example_data")
abd <- load_raster("abundance", sp_path)

# parse dates
parse_raster_dates(abd)

## End(Not run)

ebirdst documentation built on Jan. 16, 2021, 5:16 p.m.