If DF = a data.frame with 65000 rows and k columns, the following
will do what I read in your question:
lapply(DF, table)
See, e.g., Venables and Ripley, Modern Applied Statistics with S
(Springer, pp. 33-34 in the 4th edition, 2002).
hope this helps.
Perez Martin, Agus
tin; lista R help (E-mail)
Cc:
Subject: Re: [R] Summaries
Have a look at 'table'
To compute for all columns of your dataset, combine with 'apply':
> data(iris)
Have a look at 'table'
To compute for all columns of your dataset, combine with 'apply':
> data(iris)
> apply(iris,2,table)
[...]
$Petal.Width
0.1 0.2 0.3 0.4 0.5 0.6 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2
2.3 2.4 2.5
5 29 7 7 1 1 7 3 5 13 8 12 4 2 12 5