I have this dataset: http://media.sdsoybean.org/images/Uploads/2016%20South%20Dakota%20Soybean%20Yield%20Contest%20Results.pdf
I want to make a new vector called Method
. This will consist of the values No-till
, Non-irrigated
or Irrigated
. I can extract these from group Group
column.
I'm thinking an ifelse()
function combined with grepl()
or strsplit()
might work?
Thanks.