R/normAdd.R

Defines functions normAdd

Documented in normAdd

#' Extracts info from the package name 
#' @param pkgname The package name according to the bioconductor annotation 
#' names.  
#' @return Additional info for save files.
#' @author Andreas Mitterecker
normAdd <- function(pkgname) {
    tmp <- unlist(strsplit(pkgname, "\\."))
    .simpleCap <- function(x) {
        s <- strsplit(x, " ")[[1]]
        paste(toupper(substring(s, 1, 1)), substring(s, 2),
                sep = "", collapse = " ")
    }
    return(.simpleCap(tmp[length(tmp)]))
}

Try the cn.farms package in your browser

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

cn.farms documentation built on Nov. 8, 2020, 7:59 p.m.