Re: [R] Reshaping Data for bi-partite Network Analysis [SOLVED]

2013-04-14 Thread arun
put) #   place #people school home sport beach  # Marc  2    4 0 0   #Joe   0    3 1 5   #Mary  4    0 0 0 A.K. From: sylvain willart To: arun Cc: R help Sent: Saturday, April 13, 2013 5:41 PM Subject: Re: [R] Reshaping Data for

Re: [R] Reshaping Data for bi-partite Network Analysis [SOLVED]

2013-04-13 Thread sylvain willart
Wow ! so many thanks Arun and Rui works like a charm problem solved 2013/4/13 arun > Hi, > Try this; > library(reshape2) > res<-dcast(Input,people~place,value.var="time") > res[is.na(res)]<-0 > res > # people beach home school sport > #1Joe 53 0 1 > #2 Marc 04