R/strsplit_trim_pipe.R

Defines functions strsplit_trim_pipe

Documented in strsplit_trim_pipe

#' Splits a string by the pipe, unlists, and trims whitespace on both sides
#' @import stringr
#' @export

strsplit_trim_pipe <-
        function(string) {
                stringr::str_trim(unlist(strsplit(string, "|", fixed = TRUE)), "both")
        }
meerapatelmd/centipede documentation built on Jan. 1, 2021, 9:27 a.m.