Skip to content

Commit

Permalink
Fixed bug in Datainit
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-corcoran-barrios committed Dec 7, 2022
1 parent 0d33258 commit fd4564b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/DataInit.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#' @noRd

.DataInit <- function(x){
if(is(x) == "network"){
if(is(x)[1] == "network"){
x
}
if(is(x) == "matrix"){
if(is(x)[1] == "matrix"){
x <- network::as.network(x,
matrix.type='adjacency',
# loops = TRUE,
Expand Down

0 comments on commit fd4564b

Please sign in to comment.