[R] Where is the error

2008-09-14 Thread rajivv
P <- vector(mode="numeric",length =10) SS<-function(){for(id in 0:9){ if(0http://www.nabble.com/Where-is-the-error-tp19477706p19477706.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://st

[R] Please help me in Converting this from C# to R

2008-09-13 Thread rajivv
Random r = new Random(); DirectedGraph graph = GetGraph(); decimal B = 0.1m; decimal D = 0.05m; int nodes = graph.NodesCount; decimal[] E = new decimal[nodes]; decimal[] P = new decimal[nodes];