Read gml file in R
问题 i have problem when i try to read a gml file of political books dataset. i use the command: hh=read.table("polbooks.gml") Erreur dans scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : la ligne 2 n'avait pas 2 éléments and when i use this one: library(multiplex) hh=read.gml("polbooks.gml") Erreur dans (grep("graphics", edg, fixed = TRUE)[(i - 1)] + 2):(grep("graphics", : argument NA / NaN i have this problem in every dataset ".gml" 回答1: you can do like this, g<-read.graph(