extract_date_from_name: Extract date from dataset name or filename

View source: R/chek_reptiledb_status.R

extract_date_from_nameR Documentation

Extract date from dataset name or filename

Description

Extract date from dataset name or filename

Usage

extract_date_from_name(name, type = "local")

Arguments

name

Dataset name or filename

type

Type of name ("local" or "remote")

Value

A Date object representing the extracted date, or NULL if extraction fails. For local datasets, expects pattern "reptiledb_MMYYYY" (e.g., reptiledb_012025). For remote files, expects pattern "reptile_checklist_YYYY_MM.xlsx".


reptiledb.data documentation built on Aug. 8, 2025, 7:13 p.m.