R/utils.R

Defines functions empty_list_check

empty_list_check <- function(x) {
    if (length(x) == 0 & is.list(x)) {
        return(NA)
    } else if (length(x) > 1) {
        return(paste(x, collapse = ","))
    } else {
        return(x)
    }
} 

Try the ROptimizely package in your browser

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

ROptimizely documentation built on May 1, 2019, 7:35 p.m.