Displaying 1 result from an estimated 1 matches for "classcod".
Did you mean:
classcol
2010 Nov 15
1
Aggregate on identical link attributes
...Also, there are some link without partner links(see record 21 in test data).
This record should not be summed with another link since there isnt a
compliment to sum with.
Thanks in advance.
-JR
#Create test data
TNode<-c(1:20,21)
FNode<-c(rev(1:20),22)
Volume<-c(rep(100,20),200)
ClassCode=c(rep("Local",20),rep("Freeway",1))
#Create data frame with test data
EmmeData..<-data.frame(TNode=TNode,FNode=FNode,Volume=Volume,ClassCode=ClassCode)
#Create list to store results
LinkSum_<-list()
#Create vecotrs to establish loops
TNodes<-unique(EmmeData..$TNode...