R/getstem.R

Defines functions getstem

Documented in getstem

#' Get the stem of a bed filename. 
#' 
#' Remove the ".bed" part.
#' 
#' @param pathname Character. Pathname of the bed file.
#' @return \code{pathname} without ".bed" extension.
getstem = function(pathname) {
	gsub("(.*?)\\.bed$", "\\1", pathname)
}
kindlychung/CollapsABEL documentation built on May 20, 2019, 9:57 a.m.