My google-fu is failing me. I have a simple dataframe that looks like this:
| Sample | Subject | Person | Place | Thing |
|---|---|---|---|---|
| 1-1 | Janet | |||
| 1-1 | Boston | |||
| 1-1 | Hat | |||
| 1-2 | Chris | |||
| 1-2 | Austin | |||
| 1-2 | Scarf |
I want the values in the subject column to move into their appropriate column so that I end up with something like this:
| Sample | Subject | Person | Place | Thing |
|---|---|---|---|---|
| 1-1 | Janet | Janet | Boston | Hat |
| 1-2 | Chris | Chris | Austin | Scarf |
I've looked at pivot and transpose, but those don't seem right.
Any ideas would be appreciated! :)