Get the different values ​​of a column – Data Frame – R Language


Good guys, I'm dealing with R in college for the first time in my life and I'm completely clueless!!

So in a data frame I have a column "to" that has +20,000 values ​​(same and different) What I wanted to know was the different values ​​that appear there at least once and then know how many times that value appears.

Any manja R? Thanks


Assuming the data frame is called x , the command to be used is


This will create a table with all the unique values ​​in this column and the number of times each one appears.

Scroll to Top