I have some data that looks like this
I want to calculate growth rate of each tumor (cm/month) and then eventually calculate an average growth rate.
I have previously done this manually for each time frame and then average all the growth rates per tumor together. For example, rate for tumor 1 would be (-0.2/2 + 0.7/10 + -0.1/11)/3.
Is there a better/more elegant way of doing this in R?
