How to divide a column with categorized data into new columns

How can I divide a colum woth categorized data into 5 different columns. It is similar to changind rows into columns... Sorry, I don't even know how to describe it better. Images for example on how I need it to be!



To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: