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 <raj@clinasia.com> wrote:

>
> 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-tp24968531p24968531.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]


