-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
  • 52,746
  • 12
  • 114
  • 209
Pavan Kumar
  • 71
  • 1
  • 1
  • 5

1 Answers1

0

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

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