I am new to R. I want to confirm if my understanding of the concept is correct.
While working with logical operator OR I am unable to understand the below output. Case 1 has result "false" when both the second elements as 0 while it is "true" when these are numbers >0. Is this because 0 is always considered as "FAlse" and in this case both these values are "false"?
Case 1
v <- c(3,0,TRUE,2+2i)
t <- c(4,0,FALSE,2+3i)
print(v|t)
#[1] TRUE FALSE TRUE TRUE
Case 2
v <- c(3,0,TRUE,2+2i)
t <- c(3,0,FALSE,2+3i)
print(v|t)
#[1] TRUE FALSE TRUE TRUE