Not sure why i am getting this error. Can we not execute this statement
asd <- c()
asd1 <- c()
if(asd == asd1)
{
pr <- 0
} else{
pr <- 1
}
Error in if (asd == asd1) { : argument is of length zero
Can we not execute null values here? Because is asd is also 0 and asd1 is also 0. Also I do not need to use length(asd) == length(asd1). But asd == asd1 should work right?