Thank you a lot for your answer @DavoWW!
The excel file I used is a matrix containing only 0,1) and on my older computer (using Windows 7) the exactly same script is working.
My commends:
WissOperativeAnpass1 <- read_excel("WissOperativeAnpass.xlsx")
NetWissOperativeAnpass1 <- as.network(WissOperativeAnpass1)
summary(NetWissOperativeAnpass1)
And on my new computer (using windows 10) only this commend doens't work:
NetWissOperativeAnpass1 <- as.network(WissOperativeAnpass1)
Then it says: Error: Subscript cbind(i, i) is a matrix, it must be of type logical.
Now I tried your advise, it worked. But then the facts from my network change. For example density is with the as.network commend: 0.039160... and with your advise: 0.124060...
Can you explain this problem?
Thank you so much!