Pivot / gather columns

Edit pageLast modified: 02 June 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)