Im trying to understand what the syntax is for a sub() function. The code is this:
path = "/Volumes/Elements/GTEx-v8_WGCNA/Annotations/signed/Adipose-Subcutaneous_0.8125Pathway_Enrichment_all_results.xls"
name = sub(".*/", "", path)
name = sub("Pathway_Enrichment_all_results.xls.*", "", name)
I'm just confused as to what
name = sub(".*/", "", path)
is doing.
Thanks!