[R] Please help! Matrices and parameter of time

2014-04-01 Thread ANNA SIMEONIDOU
Hi, Well, the solution to my problem maybe is easy, but i have really stuck with this. I have a process which evolves in three times, so there is the parameter of time (t=1,2,3).More particularly i have three 4*4 matrices, one for each time. In other words each element has three cordinates: tim

[R] Problem with loop, matrix and data frame

2013-11-26 Thread ANNA SIMEONIDOU
Hi all, I'm sorry, maybe the solution in my problem is easy, but i am still new to R, and any help here is appreciated! I want to create a data frame, or a matrix in which the output of each loop will be stored. Here is the program > n<-c(10,8,7,5) > n_goal<-c(8,9,9,4) > w<-c(0.1,0.1,0.1,0.1)