R newbie here. I need to use one of the columns "Student Status" and make it columns and get the date values associated with that StudentID and StudentStatus.

Here is my original data.

[![Tabular Data](https://i.stack.imgur.com/wJmju.png)](https://i.stack.imgur.com/wJmju.png)

This is my desired output.

[![enter image description here](https://i.stack.imgur.com/HrJWv.png)](https://i.stack.imgur.com/HrJWv.png)

Please help. Thanks.