Re: [R] Average row and column

2012-03-15 Thread MSousa
Thank you. Works perfectly -- View this message in context: http://r.789695.n4.nabble.com/Average-row-and-column-tp4474524p4475438.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.et

Re: [R] Average row and column

2012-03-15 Thread David Winsemius
On Mar 15, 2012, at 10:23 AM, MSousa wrote: Sorry, I ll explain better. For example in the next dataset, x<-data.frame(v_source=3,v_destine=3,dist=4) x<-rbind(x,data.frame(v_source=7,v_destine=7,dist=0)) x<-rbind(x,data.frame(v_source=6,v_destine=6,dist=0)) x<-rbind(x,data.frame(v_source=4

Re: [R] Average row and column

2012-03-15 Thread MSousa
Sorry, I ll explain better. For example in the next dataset, x<-data.frame(v_source=3,v_destine=3,dist=4) x<-rbind(x,data.frame(v_source=7,v_destine=7,dist=0)) x<-rbind(x,data.frame(v_source=6,v_destine=6,dist=0)) x<-rbind(x,data.frame(v_source=4,v_destine=4,dist=56)) x<-rbind(x,data.frame(v

Re: [R] Average row and column

2012-03-15 Thread MSousa
Sorry, I ll explain better. For example in the next dataset, x<-data.frame(v_source=3,v_destine=3,dist=4) x<-rbind(x,data.frame(v_source=7,v_destine=7,dist=0)) x<-rbind(x,data.frame(v_source=6,v_destine=6,dist=0)) x<-rbind(x,data.frame(v_source=4,v_destine=4,dist=56)) x<-rbind(x,data.frame(v

Re: [R] Average row and column

2012-03-15 Thread Petr PIKAL
Hi > > Hello > > I have this code for the count the occurrences between V_source and > V_destine, its can possible make the same, but in local the total the > occurrences to appear the mean or the minimum Your question is rather cryptic and I am rather confused what you really want. For row/co

[R] Average row and column

2012-03-15 Thread MSousa
Hello I have this code for the count the occurrences between V_source and V_destine, its can possible make the same, but in local the total the occurrences to appear the mean or the minimum Dataset df.v_source df.v_destine df.dif 1 33 4 2 7