Do there need to be the same number of y-values for each x-value when using tapply?
I'm trying to fit a set of data to a non-linear distribution (namely, rates of
insect development at different temperatures), and I'm trying to do this using
the selfStart and GetInitial functions. (I'd of course be open to alternative
suggestions!). However, I keep running into this error:
Error in tapply(y, x, mean, na.rm = TRUE) :
arguments must have same length
I created a post on stackoverflow that includes the data and my code, and a
more in-depth explanation. I would be grateful if someone could have a look
and let me know where I'm going wrong!