I\'ve got a data frame containing, say, the columns v1, v2, ..., v30 which contain the same factor variables, although the levels are different from column to c
v1, v2, ..., v30
One approach is
library(plyr) llply(.data=df, .fun=table)
Here is one approach to do this
table(unlist(df))