Just a collection of some random cool stuff.
PS. Almost 99% of the contents here are not mine and I don't take credit for them, I reference and copy part of the interesting sections.
Tuesday, October 26, 2010
R aggregation
> x
j word journ
1 1 p b
2 2 g b
3 3 p d
4 4 p b
5 5 p d
> with(x, tapply(word, journ, length))
b d
3 2
No comments:
Post a Comment