I need help with RStudio/RMarkdown/Igraph. How to create a Igraph

I am writing to you because of the greatest need.
I am currently learning to use RStudio, but have more difficulties with it.
But I have to show something in 2 weeks to pass the course.
I have to analyze the “Newcomb Fratnerity” dataset. However, I am already failing to create a network.
Could you show me how I create a network in Rstudio (RMarkdown) from it step by step?
That would be really nice of you.
Or at least tell me whats wrong with this comment: gnewc1 ← graph_from_adjacency_matrix(NEWC0, mode=c(“directed”), weighted=NULL, diag=FALSE, add.colnames=NULL, add.rownames=NA)

The Newcomb Dataset (here NEWC1) looks something like this:

With best regards

Taqir

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

Also, changing your topic title to something more related to your actual issue might help you attract more attention, as I understand it, your actual question is how to create a network using igraph, right?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.