powered by
Returns row counts of the dataset. If bare column names are provided, count.() returns counts by group.
count.()
count.(.df, ...)
A data.frame or data.table
Columns to group by. tidyselect compatible.
tidyselect
# NOT RUN { test_df <- data.table( x = 1:3, y = 4:6, z = c("a", "a", "b")) test_df %>% count.() test_df %>% count.(z) test_df %>% count.(where(is.character)) # }
Run the code above in your browser using DataLab