For my thesis I am currently trying to make tradelinks, but with the last lines to make a new csv document i get an error:
Error in i_set_vertex_attr(x, attr(value, "name"), index = value, value = attr(value, :
Length of new attribute value must be 1 or 207, the number of target vertices, not 1934.
This is the code on which the error is applied:
write.csv(d1,file=paste("ITN_", period+2010, "network.csv", sep=""),na=".")
- colnames(links)[2+period] <- "wold"
- }
How do i fix this?