Re: [R] Average of a variable against another.

2010-02-11 Thread Keeeeeeee
Take it easy. I wrote that thank you. Actually, the sentences "Get the average tall of the plant against year, for all the years of available data. The year_1 and year_2 are recorded so that a plant is alive if the year of a question is equal to or grater than the year_1 and equal to and less th

Re: [R] Average of a variable against another.

2010-02-11 Thread David Winsemius
On Feb 11, 2010, at 10:01 PM, K wrote: Actually, the way you did is wrong. You ignore an instruction that "the year_1 and year_2 are recorded so that a plant is alive if the year of a question is equal to or grater than the year_1 and equal to and less than the year_2." I did n

Re: [R] Average of a variable against another.

2010-02-11 Thread Keeeeeeee
Actually, the way you did is wrong. You ignore an instruction that "the year_1 and year_2 are recorded so that a plant is alive if the year of a question is equal to or grater than the year_1 and equal to and less than the year_2." That is, you can't ignore the ages between year_1 and year_2. The

Re: [R] Average of a variable against another.

2010-02-11 Thread David Winsemius
On Feb 11, 2010, at 7:32 PM, K wrote: Dear helpers, FYI, I am a beginner of R, just have dealt with MATLAB or JAVA. I want to know how to solve one problem given 4 variables: year_1, year_2, tall_1, tall_2. The tall_1 is measured at year_1 and tall_2 at year_2. The tall has grown