Hello,
Jonsson wrote > > Dear Rui, > > I really appreciate your help. This is exactly what I was looking for.I > know there is simpler way than mine but I couldn't figure it out.So, many > many thanks. > > I wonder what is the difference between > > This: tm[ta[i],tb[i]]= round(mean(D[(d-1)*8 + 1:8, i])) > and This: (Why not use the parameter 'digits'?) > tm[ta[i],tb[i]]= round(mean(D[(d-1)*8 + 1:8, i]), 1) > round defaults to 0 decimal places. The second version uses 1, just as an example. >From the help page: "round rounds the values in its first argument to the specified number of decimal places (default 0). " See ?round Rui Barradas -- View this message in context: http://r.789695.n4.nabble.com/Min-Max-tp4593065p4593253.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.