is there a good notes for loops(if else and while) in r.
I have a code written in Matlab and I tried to rewrite it in R but it does not give me the write result . for example in matlab the result is (1 2 3 4)
In r it is give my only 2
One more question if I have variable,lets say x and I use it in a loop and I update x each time in the loop . How can I get a vector for all X's.
Thank you
HI
[[alternative HTML version deleted]]