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
-
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:27 PM
To: r-help@r-project.org
Subject: [R] Scaling error
Hi
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 muhammad.ra...@ouce.ox.ac.uk:
Hi useRs,
I ran into an inconsistent output problem again. Here is the simplify
illustration
I've got a matrix as follows
x
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 3
[2,] 4
4 matches
Mail list logo