length2 | R Documentation |
Version of length which can handle NA
s: if na.rm == TRUE
, don't count
them
length2(x, na_rm = FALSE)
x |
A vector |
na_rm |
Boolean; Default is |
an integer value
length2(x = c(1, 2, 3, NA, 5, 6, NA, 7, 8, NA, 10))
length2(x = c(1, 2, 3, NA, 5, 6, NA, 7, 8, NA, 10), na_rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.