In R we use ifelse(test, yes, no) command. The problem which i am facing is if a codiation comes out to be true i need to perform various statement, for example
This works:
a <- "01" ifelse(a=="01", d <- c(sum(b),sum(c)), d <- 0) d #[1] 21 2616 a <- "02" ifelse(a=="01", d <- c(sum(b),sum(c)), d <-0) d #[1] 0