In order to calculate the status of late products, I wanted to subtract order date and shipping date of the product.
Sales1 <- data1 %>%
mutate(orderdate = dmy('Order Date'), shipdate = dmy('Ship Date'),
number_days = interval(orderdate,shipdate)/ddays(),
LateValue = if_else(number_days>2,"Late","NotLate"),
idLateStatus = row_number())
However, I am getting warning message as all formats failed to parse and there are no values shown in the table as well. It would be helpful for me if someone can suggest any ideas.
Thank You