Dear David, I think you meant tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8),i]-273.15)) not tm[ta[i],tb[i]]= round(10 * mean(D[((d-1)*8 + 1:8)-273.15), i]-273.15)) .
As you can see in the code above.I want to save the results as integer(16bit) thats why I multiplied by 10(as factor),in order to keep one dice-mil . Because I will later divide by 10.for example if I got 25 so this means 2.5. Thats why I used round. -- View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4594931.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.