[R] Need help with my homework

gaja gajahorvat at hotmail.com
Wed Jan 26 22:06:31 CET 2011

 Hello to all again :)

Again, I have an issue with my homework. I was troubling myself for two
days, and I still can't get it :(

So, if someone can help me, I would be so grateful... 


I need to draw function,

random walk take the length of walk, and its in 2D. As a result, I have to
take matrix in which are i-lines of matrix, written coordinates on i-steps 

radnom.walk <- function (length, dim = 2){



I need to draw function, which draws self-avoiding walk of given length in
plane level

selfavoiding <- function (length)



That would be all. I'm sure, there is an expert which can help me, hehe. I
wish to learn with those two examples for other 5, I have to deal with, for
that homework.

Cheers, Gaja*
View this message in context: http://r.789695.n4.nabble.com/Need-help-with-my-homework-tp3238794p3238794.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list