Displaying 1 result from an estimated 1 matches for "line724".
2009 Dec 27
4
how to create a simple loop ?
...2 … … … …
Line3 … … … …
…
Line 1838 … … … …
I want to calculate several simple arithmetic means for Row5, that is from Line173 to Line193, from Line434 to Line455, from Line699 to Line724, from Line955 to Line977
A simple way is to individually compute these means. The first one (Line173 to Line193) is then obtained by :
>mean(data[173:193,5], na.rm = TRUE)
That’s right ! But, I aim to automate this calculation by creating a loop.
I tried many things, but I have been unsuccessfu...