Dear Frederico
From your example it is not clear to me what you like to obtain:
Please have a look on the slightly changed example here (I
changed two values to show a potentially undesired side effect of
your coding.
test - data.frame(rbind(c(3,3,10,21,0), c(2,3,11,12,0), c(3,4,12,23,0),
On Thu, 2006-02-09 at 09:22 +0100, Christoph Buser wrote:
Dear Frederico
From your example it is not clear to me what you like to obtain:
Please have a look on the slightly changed example here (I
changed two values to show a potentially undesired side effect of
your coding.
test -
sent: Wed, 08 Feb 2006 18:12:37 +
Subject:[R] logical condition in vector operation
Send reply to: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
HI All,
I have a data frame such as:
test
x y p d
[1,] 1
HI All,
I have a data frame such as:
test
x y p d
[1,] 1 0 10 21 0
[2,] 2 3 11 12 0
[3,] 3 4 12 23 0
[4,] 3 5 13 24 0
and I want to perfor some operations on the first two coulums,
conditional on the uneqaulity values on the 3rd and 4th columns.
For instance:
j = 3
test[test[,1] ==