R/other-methods.R

Defines functions cleanorganismname

Documented in cleanorganismname

#==============================================================================#
# other-methods.R:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# cleanorganismname
#==============================================================================#

#' Cleans the organism name from redundant characters
#' 
#' Cleans the organism name from redundant. It is used internally in DEMI
#' analysis.
#' 
#' @param organism A \code{character}. A \code{character} specifing the organism name.
#' @return A \code{character} representing clean organism name.
#' 
#' @author Sten Ilmjarv
#' 
#' @export 
#' @docType methods
#' @rdname cleanorganismname-methods
cleanorganismname <- function( organism )
{
	organism <- gsub( "_", "", organism );
	organism <- gsub( "-", "", organism );
	organism <- gsub( " ", "", organism );
	return( organism );
}

Try the demi package in your browser

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

demi documentation built on May 2, 2019, 11:11 a.m.