Is there a way to merge multiple variable valuses into one?

See the FAQ: How to do a minimal reproducible example reprex for beginners for a way to clearly illustrate the problem. It's unclear which variables, how they are coded and what object (data frame, matrix, S4 object, etc.?)