R/split.labels.r

Defines functions split.labels

Documented in split.labels

#' Split labels
#'
#' Splits labels
#' @param labels String of labels separated by comma, no default
#' @export
split.labels <- function(
                         labels
                         )
{
    ## Remove quotation marks and split on commas
    labels <- trimws(gsub("\\\"", "", unlist(strsplit(labels, ","))))
    return (labels)
}
janejkanske/SupaLarna documentation built on July 29, 2020, 1:55 p.m.