Hi! I'm very new to R and I had a quick question and I was hoping someone may know the answer I am trying to create a new column in a data set and I was hoping to look within a different column. For example, if the already existing Date column has "a certain date", I want "Yes" to be printed in my new column. This is what I have so far but I'm getting an error message that the object Date is not found. I've tried a couple of different things but to no avail. Thank you in advance if anyone is able to provide any advice or direction!
my_data_inflow$SourceFile <- c("Inflow.csv")
my_data_inflow$Month <- c(my_data_inflow, if("7-Oct-19" %in% Date) {
print("Yes")
} else {
print("No")
})