How to split a variable?

Depending on what kind of analysis you could filter the data or group it, but to give you any specific advice we would need more information.

Can you please provide a proper REPRoducible EXample (reprex) illustrating your issue?