I have a data-frame in rstudio as such:
| Animal | Color | Weight |
|---|---|---|
| Deer | Brown | Less than 3 |
| Pig | Green | More than 3 |
I want a list as such:
- Deer-Color: Brown
- Deer-Weight: Less than 3
- Pig-Color: Green
- Pig-Weight: Less than 3
How can I make that happen? There's way more entries and also more characteristics in the real-life application, and thus I would love an automated way.
Thank you!