Transforming Survey Data Layout

You can use tidyr::pivot_wider()

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.