extract_dpa_name {densitr}R 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


[Package densitr version 0.2 Index]