R/str_chop_vec.R

Defines functions str_chop_vec

str_chop_vec <- function(x, pattern) {
    return(unlist(lapply(x, function(y) {
        
        unlist(stringr::str_split(y, pattern))[1]
        
    })))
}
HajkD/LTRpred documentation built on April 22, 2022, 4:35 p.m.