ez.len | R Documentation |
length of an object
ez.len(x)
if a character vector with only one element, returns the number of characters in that item
if a character vector with more than one element, returns the number of elements
data frame, returns the number of rows
NA returns 0
everything else, call length()
# x <- c("Hello", "world!")
# > length(x)
# [1] 2
# > nchar(x)
# [1] 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.