Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


PathSelectMP (version 1.1)

NumEndFile: Extract Number From INP and OUT Files

Description

helper function used to find last input and output file which is the highest numbered file

Usage

NumEndFile(NameoFile, pattern1, pattern2)

Arguments

NameoFile

list of strings

pattern1

the string pattern before which the desired number is located

pattern2

2nd character of string pattern before which the desired number is located

Value

returns number

Details

helper function not to be used by regular user

References

No reference

Examples

Run this code
# 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