R: Count number of objects in list

Viewed 308572

Can someone recommend a function that can allow me to count and return the number of items in a list?

library(stringr)

l <- strsplit(words, "a")

if(# number of items in list l < 1) 
  next
5 Answers
Related