extract_information_from_file_name: Extract information from file name

View source: R/utils.R

extract_information_from_file_nameR Documentation

Extract information from file name

Description

Extracts the information regarding country, year, database and level. The latter two only if available.

Usage

extract_information_from_file_name(file_name, current_format)

Arguments

file_name

A string with the name of the file.

current_format

A string with the currant format.

Details

To be used inside 'change_file_name_format()'.

Value

A list with the following elements:

  • 'country_' ('cc')

  • 'year_' ('yyyy')

  • 'database_' ('d')

  • 'level_' ('l')


JosepER/lissyrtools documentation built on Jan. 26, 2025, 10:01 p.m.