Skip to contents

This function extracts the year of the database from the file name.

Usage

get_database_year(path)

Arguments

path

Path to the database file.

Value

An integer with the year.

Examples

get_database_year("path/to/database2025.sas")
#> [1] 2025