R/utilities.R

Defines functions .trim .condense

.trim <- function(str) gsub("^\\s+|\\s+$", "", str)

.condense <- function(str){
    str.out<- paste(
        {
            .x <- unique(str[!str %in% c("","NOTHING")])
            .x[order(.x)]
        },
        collapse = "; "
    )
    return(str.out)
}
jcizel/EBAResultAnalysis documentation built on May 18, 2019, 10:24 p.m.