| Start |
|---|
Reshape from long to wide format with spread() We can "spread" the 'numbers' column, into separate columns: Or spread the 'name' column into separate columns: |
Reshape from wide to long format with gather() We can gather the columns together using 'numbers' as the key column: |
Read Article
https://develop.horje.com/learn/1434/reference