search for: v_sourc

Displaying 2 results from an estimated 2 matches for "v_sourc".

Did you mean: v_source
2012 Apr 06
4
Order sapply
...llowing code, but it seems that something must be doing wrong, because it is giving the results I want. The idea is to create segments while the value of Commutation is less than 1000. for example, from the small set of data below text=" val_user pos v v_star v_end commutation v_source v_destine 1 1 96-96 1173438391 1173438391 0 96 96 3 2 126-126 1172501729 1172501532 197 126 126 3 3 126-35 1174404177 1172501909 1902268 126 35 3 4 35-56 1174404252 1174404221 31 35 56 3 5 56-99 1174404295...
2012 Mar 13
2
Matrix Another table
I have next table source destine 3 3 7 7 6 6 3 4 4 4 4 3 3 3 3 3 3 3 3 3 3 4 4 4 4 3 3 4 4 3 I'm trying to create an array with the number of occurrences between the source and destination. id_ap<-levels(factor(df$v_source)) num_AP<-length(levels(factor(df$v_source))) mat<-matrix(data=NA,nrow=num_AP,ncol=num_AP, byrow=TRUE,dimnames=list(id_ap,id_ap)) 1 2 3 4 5 6 7 1 NA NA NA NA NA NA NA 2 NA NA NA NA NA NA NA 3 NA NA NA 4 NA NA NA 4 NA NA NA NA NA NA NA 5 NA NA NA NA NA NA NA 6 NA NA NA NA NA NA NA 7 N...