How to count the number of unique entries of a column with more than 400k rows

Hello,

I want to count the number of unique entries that are present in a column of a big df of more than 400k rows. I already tried table(df$columnname) but my RStudio stopped after 630 entries. I'm not interested in knowing how many times each unique entry appears, just the exact number of unique entries that are present.

Posted Dec 9, 2025, 8:51 AM UTC

3020
Loading comments…