R/lengths.R

lengths <- function(x) {
  map_int(x, length)
}

compat_lengths <- function() {
  if (getRversion() >= "3.2.0") {
    rm("lengths", inherits = TRUE)
  }
}

Try the dplyr package in your browser

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

dplyr documentation built on July 4, 2019, 5:08 p.m.