[R] Local Variable

2010-09-16 Thread harunpirim
Dear All, I have a function: gen <- function(m){for(i in 1:m){assign(paste("x",i, sep=""), (7*get(paste("x",i-1,sep="")))%%13); print(get(paste("x", i, sep="")))}} my question is, I do gen(20), then the function prints out 20 values, however when I do objects(), I can't see x1,x2,x3,,x20 as

[R] Minimum Spanning Trees

2010-02-25 Thread harunpirim
Hi, I need to find all minimum spanning trees of an unweighted graph. Is there a way in R to do that? Thanks -- View this message in context: http://n4.nabble.com/Minimum-Spanning-Trees-tp1569351p1569351.html Sent from the R help mailing list archive at Nabble.com. __