As always, screenshots are seldom helpful. Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.
The best I can offer is to create a new column variable, which I'll denote fence
with 1 signifying pre-2014 and the other 2014 and following. The details will depend on the class
of the YEAR
column.
your_df %>% mutate(fence = ifelse(YEAR < 2014,0,1)) -> your_df