variavel1 <- 5 if (variavel1 %in% c(4, 5, 6, 7)) { variavel2 <- 1} print(variavel1)print(variavel2)
Standard input is empty
[1] 5 [1] 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!