R/nucleotides.R

Defines functions nucleotides

Documented in nucleotides

#' @export
nucleotides <- function(df){
  
  nucleotides.name <- names(df)[ which(endsWith(names(df), "_nucraw") ) ]
  
  if( identical(nucleotides.name, character(0) ) ){
    return("there are no nucleotides in this dataframe")
  } else{
    return(nucleotides.name) 
  }
}
nishanmudalige/BOLD.R documentation built on July 15, 2022, 3:33 a.m.