Jim Lemon wrote:
Edward Chen 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
specif
Edward Chen 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
if your matrix has many rows you might want to consider rowMedians from
Bioconductor package Biobase.
hth,
Matthias
Greg Hirson schrieb:
Edward,
See ?apply
x = matrix(rnorm(100), ncol = 10)
apply(x, 1, median)
Hope this helps,
Greg
Edward Chen wrote:
Hi,
I tried looking through google se
Edward,
See ?apply
x = matrix(rnorm(100), ncol = 10)
apply(x, 1, median)
Hope this helps,
Greg
Edward Chen 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 computatio
August 21, 2009 11:50 AM
To: r-help@r-project.org
Subject: [R] help with median for each row
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 numbe
?apply specifically the MARGINS argument
On Fri, Aug 21, 2009 at 11:50 AM, Edward Chen 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
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 muc
7 matches
Mail list logo