extract_dpa_name: Extract a file name from a full path

View source: R/load.R

extract_dpa_nameR Documentation

Extract a file name from a full path

Description

A wrapper function for regex extraction of filename. Given a character string ("data/0005/00/00050060.dpa"), it will return only the file name without the extension ("00050060").

Usage

extract_dpa_name(string)

Arguments

string

A path to file, including file name. Can be nested in many directories or in none.

Value

An extracted filename, a character string.

References

https://stackoverflow.com/questions/47678725/how-to-do-str-extract-with-base-r


krajnc/densitr documentation built on April 5, 2022, 7:49 p.m.