[R] a max value for each column

2005-10-17 Thread Muhammad Subianto
Dear R-list I have a dataset like below (points), how can I produce a max value for each column. I need a result like (I hope my eye correct): [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 211 10 99 14 19695 8 5 7 This is a

Re: [R] a max value for each column

2005-10-17 Thread TEMPL Matthias
apply(points, 2, max) Should do the job. For details look at ?apply Best, Matthias Dear R-list I have a dataset like below (points), how can I produce a max value for each column. I need a result like (I hope my eye correct): [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]

Re: [R] a max value for each column

2005-10-17 Thread Muhammad Subianto
Acchhh very easy, time to drink a cup of coffe, but Thank you for your all. apply(points, 2, max) Best regards, Muhammad Subianto On this day 17/10/2005 02:34 PM, Muhammad Subianto wrote: Dear R-list I have a dataset like below (points), how can I produce a max value for each