On Thu, 11 Aug 2005, Renuka Sane wrote:
> I have two variables.
> A <- rep(c(1:9), 2)
> B <- rep(c(2:10),2)
>
> I want to know the the value for
> A==1 and B==1
>
> [SNIP]
>
> To solve the problem I therefore create a new variable
> C <- c(A, B)
> and then do table(C==1) which gives me
> FALSE TRU
table(ifelse(A==2&B==3, TRUE, FALSE))
On 8/11/05, Renuka Sane <[EMAIL PROTECTED]> wrote:
> I think there was an incomplete mail that was accidently sent by me. I
> apologize for the inconvenience. Here is the full text.
>
> I have two variables.
> A <- rep(c(1:9), 2)
> B <- rep(c(2:10),2)
>
> I
I think there was an incomplete mail that was accidently sent by me. I
apologize for the inconvenience. Here is the full text.
I have two variables.
A <- rep(c(1:9), 2)
B <- rep(c(2:10),2)
I want to know the the value for
A==1 and B==1
If I do A== 1 | B==1, I get
FALSE TRUE
16 2
This is inco
I have two variables.
A <- rep(c(1:9), 2)
B <- rep(c(2:10),2)
--
Renuka Sane
http://www.nyx.net/~rsane
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read