Skip to content
Prev 315078 / 398503 Next

Using table to get frequencies of several factors at once

Does something like this do what you want?  It returns a list of tables

md  <-  data.frame((matrix(sample(1:5, 100, replace = TRUE),nrow= 10)))
  str(md)
  apply(md, 2, table)

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!