R/suppressBrackets.R

Defines functions suppressBrackets

suppressBrackets <- function(carattere){
  
  withNoBrackets<-carattere
  
  if (identical(substr(carattere, 1, 1), "("))
    withNoBrackets<-substr(carattere, 2, 2)
  else if (identical(substr(carattere, 1, 1), "*"))
    withNoBrackets<-substr(carattere, 1, 1)
  
  withNoBrackets
  
}
beautifulMountain/PdPDB documentation built on May 28, 2019, 6:39 p.m.