sweep(x, 2, m, FUN='/')
On Sun, Dec 27, 2009 at 2:26 PM, Muhammad Rahiz <
muhammad.ra...@ouce.ox.ac.uk> wrote:
> Hi useRs,
>
> I ran into an inconsistent output problem again. Here is the simplify
> illustration
>
> I've got a matrix as follows
>
> > x
> V1V2 V3
> [1,] 1 2
Hi,
Try this,
x <- matrix(1:9, ncol=3, byrow=T)
sca <- c(2.5, 1.7, 3.6)
x %*% diag(1/sca)
HTH,
baptiste
2009/12/27 Muhammad Rahiz :
> Hi useRs,
>
> I ran into an inconsistent output problem again. Here is the simplify
> illustration
>
> I've got a matrix as follows
>
>> x
> V1 V2
#x27;t want
t(t(x)*m) #returns what you want
HTH
Daniel
-
cuncta stricte discussurus
-
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Muhammad Rahiz
Sent: Sunday, December 27, 2009 2:2
Hi useRs,
I ran into an inconsistent output problem again. Here is the simplify
illustration
I've got a matrix as follows
> x
V1V2 V3
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
Associated with the matrix is a scaling factor, sca, derived from, say
the mea
4 matches
Mail list logo