View source: R/getNameFromPath.R
getNameFromPath | R Documentation |
Obtains a file name from a path.
getNameFromPath(path, prefix = NULL, suffix = NULL)
path |
Character string or vector with the path. |
prefix |
Character string with the prefix you want to remove from the filename. For example: "ATAC_" |
suffix |
Characer string with the suffix you want to remove from the filename. For example: ".bam" |
A character string or vector with the filename.
## Not run: getNameFromPath("test/data/cov_file.txt", suffix=".txt", preffix="cov_") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.