Lubridate and Categorical Variables

See the FAQ: How to do a minimal reproducible example reprex for beginners. Having to reverse engineer the issue deters answers.