Count values from a table

Hi people!

I have the following Table (named "tabela").
The collum "corrida" is the first six numbers of the collum "indicado".
I need to count the number of equal (identical) rows in "corrida" and store in a variable.

How can I do this?


1 Like

You can use n_distinct() from dplyr:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.