apologies if this has been answered, but I've looked for the last hour and cannot find a simple answer to my question.
Very simply - I want to change / replace a value in a data frame observation based on a date conditional.
Example - (this is wrong but for illustration)
HR <-replace(HR$Status, HR$Call.Date < as.Date("01/01/2019"), "closed")
Where I want to replace the HR$Status value with "closed" if the HR$Call.Date is "before" (less than) 01/01/2019. Any help is appreciated or if there is a current open question for this.
Thanks in advance