Description Usage Arguments Examples
Returns a new file name with padded digits
1 | renumber_file(file_name, number_match_pattern, pad_width, verbose = TRUE)
|
file_name: |
original filename to rename |
number_match_pattern: |
regular expression to extract the number to pad |
pad_width: |
total number of digits to left pad with |
verbose: |
print statements |
1 2 3 4 5 6 7 8 9 | new_filename <- renumber_file(file_name = 'account_table_2017-07-17_1.RData',
number_match_pattern = '\\d*\\.RData$',
pad_width = 3,
verbose = FALSE)
new_filename <- renumber_file(file_name = "1-my_script.R",
number_match_pattern = '^\\d*-',
pad_width = 3,
verbose = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.