R/utils.R

Defines functions length_list

length_list <- function(vec){
  if(length(vec) == 0){
    return(NA)
  } else {
    unlist(lapply(vec, length))
  }
}

Try the proustr package in your browser

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

proustr documentation built on May 2, 2019, 5:08 a.m.