powered by
findIDpaths identifies all unique win-loss pathways of order \((len - 1)\) beginning at selected ID
findIDpaths
ID
findIDpaths(conf, ID, len = 2)
a matrix of conf.mat class. An N-by-N conflict matrix whose (i,j)th element is the number of times i defeated j.
(i,j)
a numeric or character vector of length 1. It specifys the subject at the beginning of each pathway.
a positive integer of length 1 greater than 2. the length of the win-loss paths to be identified (\(len = order + 1\))
return all win-loss paths of length(len) beginning at ID
length(len)
as.conflictmat, findAllPaths, countPaths
as.conflictmat
findAllPaths
countPaths
# NOT RUN { confmatrix <- as.conflictmat(sampleEdgelist) path38891 <- findIDpaths(confmatrix, ID = "Kuai", len = 2) # }
Run the code above in your browser using DataLab