[R] Trouble with syntax
Window Glass
wind0w_glass at yahoo.com
Tue Dec 2 23:10:58 CET 2003
Hello,
axsize <- max(i)
allsize <- axsize * axsize
x <- array(c(1:allsize), dim=c(axsize, axsize))
x[1:allsize] <- 0
x[i] <- 1
for (c in 1:axsize)
{
ourgraph <- data.frame(edges=x,
vertices=c(1:axsize), ith=c,
components=list(1),
communities=list(1), row.names=NULL)
browser()
When I get to browser, printing ourgraph$edges gives
NULL while printing x gives the matrix with the
correct values.
What am I writing wrong?
Regards,
Wind0w Glass
More information about the R-help
mailing list