Skip to content
Prev 246450 / 398502 Next

how to subset unique factor combinations from a data frame.

Hi

You probably did not notice xtabs I mentioned before.

as.data.frame(xtabs(~x+xx))
x xx Freq
1 A  a   18
2 B  a   27
3 C  a   30
4 D  a   30
5 E  a   27
6 F  a   18
x xx Freq
1 A  a   18
2 B  a   27
3 C  a   30
4 D  a   30
5 E  a   27
6 F  a   18

Regards
Petr


r-help-bounces at r-project.org napsal dne 05.01.2011 08:46:21:
frame.
three
wrote:
20
Attribute.
Unit)).
the
http://www.R-project.org/posting-guide.html
http://www.R-project.org/posting-guide.html