Description Usage Arguments Value Author(s) Examples
View source: R/extract_filename.R
This function split a string (file name) as per the requirement of the user. It is useful to extract informations like compound name, plate number etc from the file name.
1 |
filename |
name of the file (string). |
split |
regular expressions at which filename has to be split to create different sections. |
end |
extension (end portion) of filename that need to be removed. |
remove |
section that need to be omitted after splitting the filename. |
sep |
symbol to be added to separate sections (obtained after splitting) before combining (default is "-"). |
A character vector. First element is the unsplit 'filename'. Second element is the processed 'filename'.Other elements are different sections after splitting the 'filename'.
A.A Palakkan
1 2 | extract_filename("L-HEPG2_P3_72HRS.csv")
extract_filename("L_HEPG2_P3_72HRS.csv", split="_",end=".csv",remove="L",sep="")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.