NumEndFile: Extract Number From INP and OUT Files

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/NumEndFile.R

Description

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

Usage

1
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

Details

helper function not to be used by regular user

Value

returns number

Note

No notes

Author(s)

William Terry

References

No reference

Examples

1
2
files=c("new_1.out","new_10.out","new_11.out","new_12.out")
hh=lapply(strsplit(files,"_"),NumEndFile,pattern1=".out",pattern2="o")

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.