Description Usage Arguments Value Examples
n_ returns the length of a vector, excluding NA, NaN, and Infinite values.
1 | n_(x)
|
x |
A vector |
Length of 'x', ignoring NA, NaN, and Infinite values
1 2 3 | #example_vector <- sample(c(1,2,3,NA, Inf, NaN), 100, replace = T)
#length(example_vector)
#n_(example_vector)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.