-3

I have single column table and i need to find out count of it

status
average
good
bad
need to improve
good
bad 
average

Output should be like this

Good 2
average 2
bad 2
need to improve 1

How to do this?

zx8754
  • 46,390
  • 10
  • 104
  • 180
Pavan Kumar
  • 61
  • 1
  • 1
  • 5

1 Answers1

0

For count of rows by unique values using data.table:

myframe = data.table(myframe)
myFrame[,.N, by = myColumn]