[R] help with median for each row

stephen sefick ssefick at gmail.com
Fri Aug 21 18:54:04 CEST 2009


?apply specifically the MARGINS argument

On Fri, Aug 21, 2009 at 11:50 AM, Edward Chen<edchen51 at gmail.com> wrote:
> Hi,
>
> I tried looking through google search on whether there's a way to computer
> the median for each row of a nxn matrix and return the medians for each row
> for further computation.
> And also if the number of columns in the matrix are even, how could I
> specify which median to use?
>
> Thank you very much!
>
> --
> Edward Chen
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis




More information about the R-help mailing list