Re: [R] cross tabulation for frequency distributions

2009-08-14 Thread milton ruser
Like this? age<-as.integer(sample(rnorm(100, mean=30, sd=10), replace=T)) height<-as.integer(1+age*rnorm(100,mean=1,sd=0.2)) plot(age, height) table(age,height) or freq=data.frame(table(age,height)) freq<-subset(freq,Freq>0) freq bests milton On Fri, Aug 14, 2009 at 5:02 AM, rajclinasia wrote

[R] cross tabulation for frequency distributions

2009-08-14 Thread rajclinasia
Hi every one, how to get frequency distributions for one variable across other variable. ex: var1=age, var2=height i need frequency distribution of age across height. Thanks in Advance. -- View this message in context: http://www.nabble.com/cross-tabulation-for-frequency-distributions-tp2496853