Counting the number of elements with the values of x in a vector
Asked 07 September, 2021
Viewed 1.6K times
  • 57
Votes

I have a vector of numbers:

numbers <- c(4,23,4,23,5,43,54,56,657,67,67,435,
         453,435,324,34,456,56,567,65,34,435)

How can I have R count the number of times a value x appears in the vector?

20 Answer