[R] Min , Max
Rui Barradas
ruipbarradas at sapo.pt
Sat Apr 28 16:02:29 CEST 2012
Hello,
>
> i want this: every value is subtracted by 273.15 first ,then do other
> calculations(Min, Max)Can anyone tell me what is wrong.Thanks
>
You're subtracting 273.15 to the row numbers, not to the values in those
rows.
Corrected:
d.rows <- (d-1)*8 + 1:8
tm[ta[i],tb[i]]= round(10 * mean(D[d.rows, i] - 273.15))
Note that the d.rows extra variable is not really needed, it's there just
for clarity.
Rui Barradas
--
View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4594793.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list