I'm trying to execute a simple line of command using if && operators in R. However, I don't see any output, and there is no error as well. Wondering what's happening. Appreciate all inputs. Thanks.
lws_data[,"WSR"] <-
if(lws_data$Ref && lws_data$PS >=270)
{lws_data$WSR=1}