IDfromFilePath: Extract Compound ID from File Path and File Name

Description Usage Arguments Value Author(s) See Also Examples

View source: R/MS1_functions.R

Description

This extracts the Compound ID from the start of a file name, given the full path.

Usage

1
IDfromFilePath(file_path)

Arguments

file_path

The file path to extract the ID from.

Value

Returns the compound ID or whatever content is in front of the first "_". Designed to work off output of other functions.

Author(s)

Emma Schymanski <emma.schymanski@uni.lu>

See Also

extractMS1.RMBarchive

Examples

1
IDfromFilePath("C:/MY_DATA/MS1/3529_Indoxacarb_MS1raw.txt")

schymane/ReSOLUTION documentation built on May 22, 2021, 3:41 a.m.