Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in chapter 4,Error in get.vertex.attribute #9

Open
mooneyonly opened this issue Nov 23, 2019 · 0 comments
Open

in chapter 4,Error in get.vertex.attribute #9

mooneyonly opened this issue Nov 23, 2019 · 0 comments

Comments

@mooneyonly
Copy link

CHUNK 41

faction <- get.vertex.attribute(karate, "Faction")
Error in get.vertex.attribute(karate, "Faction") :
get.vertex.attribute requires an argument of class network.

f.colors <- as.character(length(faction))
Error: object 'faction' not found
f.colors[faction == 1] <- "red"
Error in f.colors[faction == 1] <- "red" : object 'f.colors' not found
f.colors[faction == 2] <- "cyan"
Error in f.colors[faction == 2] <- "cyan" : object 'f.colors' not found
plot(f.vec, pch=16, xlab="Actor Number",

  • ylab="Fiedler Vector Entry", col=f.colors)
    Error in plot.xy(xy, type, ...) : object 'f.colors' not found

abline(0, 0, lwd=2, col="lightgray")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant