Short tasks that mix the unit's three packages. Clean text before you count or join on it, parse dates in the order they are written, and set category order before you chart.
Check what each function returns: a parse that fails gives NA, a lowercased name that still has a space doesn't match, and a factor sorts by its levels, not alphabetically.