How to count repeated arguments in R

Asked

Viewed 658 times

0

I have a spreadsheet, I have to do some operations in the data, so I exported to R and can select the important arguments, now I need to know how many repeated elements there are in a column: for example

PRTR4: 4 VALE5: 20 . . .

how can I make that count?

  • 1

    Welcome to Portuguese Stack Overflow! Unfortunately it is difficult to help with little information. Take a look here and then edit your question.

1 answer

3


Take a look at the function table. But what’s more, it would be interesting to improve your question by providing your data set, or a part of it (function dput).

table(ColunadeInteresse)
  • Thanks, unfortunately I can not share the data, but it worked super well this Table function, thank you very much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.