Skip to contents

Get path without year in the file name

Usage

get_path_without_year(path)

Arguments

path

Path to to get if there's not a year in the file name.

Value

The path, if the file name doesn't contain a year.

Examples

get_path_with_year(c("path/with/year2025", "path/without/year"))
#> [1] "path/with/year2025"