Skip to content

Commit e7cc910

Browse files
mbojankrivit
authored andcommitted
Make mixingmatrix() return obj of class 'mixingmatrix'
It is now compatible with network::mixingmatrix.network(). References statnet/network#32 and statnet#54.
1 parent 7452d39 commit e7cc910

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/degreedist.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ mixingmatrix.egor <- function(object, attrname, rowprob = FALSE, weight = TRUE,
202202
if(rowprob){
203203
mxmat <- mxmat/rowSums(mxmat)
204204
}
205-
mxmat
205+
structure(mxmat, class = c("mixingmatrix", "table"), directed = FALSE,
206+
bipartite = FALSE)
206207
}
207-
208-

0 commit comments

Comments
 (0)