Pivot / gather columns

Edit page Last modified: 14 January 2025
  • pivot — transforms column values into new columns (long to wide)

  • gather — collects values from several columns into two key and value columns (wide to long)