R/NumEndFile.R

Defines functions NumEndFile

Documented in NumEndFile

NumEndFile <-
function(NameoFile,pattern1,pattern2){
LocUse=grep(NameoFile,pattern=pattern1)
Loc=gregexpr(pattern =pattern2,NameoFile[LocUse])[[1]][1]
num=substr(NameoFile[LocUse],1,(Loc-2))
return(as.numeric(num))
}

Try the PathSelectMP package in your browser

Any scripts or data that you put into this service are public.

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