Problem
Notice that when I run the code on Computer 2 (R version 4.2.0)
if(c(1,2,3,4) == 1){ print("Hi") }
it is going straight to error. Is there any way to make it automatically use the first element like in Computer 1 (R version 4.1.2)?
Problem
Notice that when I run the code on Computer 2 (R version 4.2.0)
if(c(1,2,3,4) == 1){ print("Hi") }
it is going straight to error. Is there any way to make it automatically use the first element like in Computer 1 (R version 4.1.2)?