Extracting two types of data from variable, splitting it in two other variables and choosing one given condition.

The best way to ask coding related questions is with a minimal REPRoducible EXample (reprex), can you please provide one?

2 Likes