R/nameleadzero.R

Defines functions nameleadzero

Documented in nameleadzero

#' @export
#' 
nameleadzero<-function(filenameroot="Img", filetype=".png", no.digits=5, counter=1)
  {
  leadingzeros<-no.digits-nchar(counter)
  imgname<-paste0(filenameroot, paste0(rep("0",leadingzeros), collapse=""), as.character(counter), filetype)
  return(imgname)
}

Try the Thermimage package in your browser

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

Thermimage documentation built on Nov. 6, 2018, 1:03 a.m.