New variable - date

If I understand correctly then you would just replace samples with Bloodsample_overview and make sure the column names match what you have in your dataset. If you provide a reprex that could help determine the problem.