Is it possible to save the adjacency matrix after "get.adjacency ()" as an adjacency matrix in R? I tried
test <- get.adjacency(network)
but i get an error
Error in View : cannot coerce class "structure("dgCMatrix", package = "Matrix")" to a data.frame.
I am using RStudio and the iGraph package.
Try using sparse=FALSEin a callget.adjacency(...)
sparse=FALSE
get.adjacency(...)
g <- graph.full(5) test <- get.adjacency(g) class(test) # [1] "dgCMatrix" # attr(,"package") # [1] "Matrix" test <- get.adjacency(g,sparse=FALSE) class(test) # [1] "matrix"
Source: https://habr.com/ru/post/1547323/More articles:Launch PhantomJS with Eclipse GAE - javaWhy is the buffer size always equal to an integer equal to 4096 when reading a file line by line? - govisual studio 2013 удаленный отладочный монитор не может найти указанный файл - visual-studio-2013How to monitor progress by consuming a lazy sequence? - clojureUnable to drag items from list in my Windows Phone 8.1 application - c #updating a package in R: `update.packages` vs` install.packages` - rdbowner not authorized to update user? - mongodbHow to determine which ListView property should use for rendering - javaIs there a mistake in this quasiquore expression? - haskellZombie process (How to finish the game with JFrame?) - javaAll Articles