
Last chance! 50% off unlimited learning
Sale ends in
helper function used to find last input and output file which is the highest numbered file
NumEndFile(NameoFile, pattern1, pattern2)
list of strings
the string pattern before which the desired number is located
2nd character of string pattern before which the desired number is located
returns number
helper function not to be used by regular user
No reference
# NOT RUN {
files=c("new_1.out","new_10.out","new_11.out","new_12.out")
hh=lapply(strsplit(files,"_"),NumEndFile,pattern1=".out",pattern2="o")
# }
Run the code above in your browser using DataLab