Re: [R] R function to calculate number of data points of each level

2008-12-17 Thread Philipp Pagel
On Wed, Dec 17, 2008 at 02:09:57PM +0100, Philipp Pagel wrote: > or maybe > > ggregate(foo$V1, by=list(foo$V1), FUN=length) Oops- that was supposed to be 'aggegate'... -- Dr. Philipp Pagel Lehrstuhl für Genomorientierte Bioinformatik Technische Universität München Wissenschaftszentrum Weihens

Re: [R] R function to calculate number of data points of each level

2008-12-17 Thread Philipp Pagel
On Wed, Dec 17, 2008 at 03:36:44AM -0800, RON70 wrote: > > I have a dataframe with two columns : > > 11600 238'4 > 12000 218'0 [...] > There are repeatations in 1st column and I want to use this as Level. Next I > want to report for each level how many data points are there, with > corresponding

[R] R function to calculate number of data points of each level

2008-12-17 Thread RON70
I have a dataframe with two columns : 11600 238'4 12000 218'0 12200 209'0 12600 192'0 13000 176'4 14000 145'0 15000 119'0 16000 103'0 1800080'0 1900068'3 2 59'0 11600 208'1 12000 189'2 12200 180'3 There are repeatations in 1st column and I want to use this as