[R] Min , Max

Rui Barradas ruipbarradas at sapo.pt
Fri Apr 27 19:15:19 CEST 2012


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.



More information about the R-help mailing list