nrut | R Documentation |
Calcula el numero de elementos diferentes en una variable de un data.frame
nrut(df, var, format = FALSE)
df |
data.frame o data.table |
var |
string variable a testear, debe ir entre comillas |
format |
logical default TRUE para agregar separador de miles |
numero
# data <- data.frame(id = rep(1:1234, 2), val = runif(1234*2)) # nrut(data, 'id') # nrut(data, 'id', format = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.