Check Files in a Sequence
util_check_file_seq( dir = getwd(), start = 1L, end = 10L, digits = 5L, fn = "filename", ext = "csv", sep = "_", prefix = TRUE )
dir | Character string. Directory. |
---|---|
start | Integer. Start of the sequence. |
end | Integer. End of the sequence. |
digits | Integer. Digits used in number sequence. |
fn | Character string.
Filename EXCLUDING
the sequence number,
the separator ( |
ext | Character string.
File extension,
for example |
sep | Character string.
String that separates number sequence and |
prefix | Logical.
If |
Ivan Jacob Agaloos Pesigan
if (FALSE) { # This will search for # {5 digits}_filename.csv util_check_file_seq( dir = getwd(), start = 1L, end = 10L, digits = 5L, fn = "filename", ext = "csv", sep = "_", prefix = TRUE ) # This will search for # filename_{5 digits}.csv util_check_file_seq( dir = getwd(), start = 1L, end = 10L, digits = 5L, fn = "filename", ext = "csv", sep = "_", prefix = FALSE ) }