[R] invalid "mode" of argument optimize

2006-01-15 Thread voodooochild
Hello everybody, i have the following function, which i want to solve for b i=1,..,n, and n is the length of t and t is the last element of t, if you do cumsum() before. (t_n*exp(-b*t_n)*sum_{i=1}^{n} f_i) / (1-exp(-b*t_n)) - (sum_{i=1}^{n} (f_i*(t_i*exp(-b*t_i)-t_{i-1}*exp(-b*t_{i-1}))) / (

Re: [R] invalid 'mode' of argument?

2005-08-10 Thread Jari Oksanen
On Wed, 2005-08-10 at 08:13 -0400, Kang, Sang-Hoon wrote: > As a novice I was trying to calculate Shannon diversity index using > diversity function in vegan package and kept having same error message. > Error in sum(..., na.rm = na.rm) : invalid 'mode' of argument > This error (which is from sum

[R] invalid 'mode' of argument?

2005-08-10 Thread Kang, Sang-Hoon
Dear Colleagues, As a novice I was trying to calculate Shannon diversity index using diversity function in vegan package and kept having same error message. Error in sum(..., na.rm = na.rm) : invalid 'mode' of argument My dataset is from microarray and have abundant missing values, so I