Description Usage Arguments Examples
Function to format filenames that can be used to unify the filenames style for more easily download or use
1 2 3 4 |
input_files |
Basename of files that need to be format, default is NULL and use the regular expression pattern to select files |
files_dir |
Directory name of input files |
pattern |
Use regular expression to select files in files_dir |
do.rename |
If set TRUE, it will do rename step |
suffix |
Profix of filenames added in those without the same suffix |
prefix |
Prefix of filenames added in those without the same prefix |
replace |
Use str_replace to replace all old to new separately |
toupper |
Filenames toupper, default is FALSE |
tolower |
Filenames tolower, default is FALSE |
1 2 3 | files_dir <- system.file('extdata', 'demo/format', package = 'ngstk')
pattern <- '*.txt'
x <- format_filenames(files_dir = files_dir, pattern = pattern, suffix = 'hg38_')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.