[R] adding a frequency variable to a data frame

Michael Friendly friendly at yorku.ca
Fri Apr 11 23:25:55 CEST 2014

Bingo! That's exactly the idiom I was looking for.
Thanks, Andrija.

On 4/11/2014 4:57 PM, Andrija Djurovic wrote:
> another:
> ave(as.numeric(Donner$family), Donner$family, FUN=length)

Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept. & Chair, Quantitative Methods
York University      Voice: 416 736-2100 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA

More information about the R-help mailing list