Hi, I have a simple table of age and frequency What data type should I use to represent this kind of data in R, and kindly how can I plot it in a curve thanks in advance RAE [[alternative HTML version deleted]]
On Wed, 14 May 2014 11:33:30 AM Ragia Ibrahim wrote:> Hi, > I have a simple table of age and frequency > What data type should I use to represent this kind of data in R, andkindly> how can I plot it in a curve thanks in advance > RAE >Hi RAE, Here is one way: agetable<-table(sample(0:100,1000,TRUE)) plot(agetable,main="Frequency plot") plot(supsmu(0:100,agetable),type="l", main="Smoothed frequency plot") Jim