I have a table where I have a numerical column of whole positive and negative values. I am trying to run a simple if statement where if the value of Yds is less than 10, then a
As the error (which is really a warning) suggests, if uses only the first element of a vector for its condition. Take a look at ifelse, which operates directly on vectors and is more appropriate for your task: