{
  "name": "Statistical Software Data Reshaping and Tidying Tools Comparison",
  "description": "Comparative technical evaluation of primary tabular data reshaping and tidying libraries across R and Python environments, compiled from CRAN documentation, official package manuals, and peer-reviewed software references.",
  "page": "https://casrai.org/guides/tidyr",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:05:37Z",
  "temporalCoverage": "2024/2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Package or Library",
      "unit": "",
      "description": "Name of the software package or built-in module"
    },
    {
      "name": "Language Environment",
      "unit": "",
      "description": "Primary computing language and ecosystem"
    },
    {
      "name": "Wide to Long Function",
      "unit": "",
      "description": "Core function used to reshape wide columns into long rows"
    },
    {
      "name": "Long to Wide Function",
      "unit": "",
      "description": "Core function used to expand key-value pairs into wide columns"
    },
    {
      "name": "Execution Engine",
      "unit": "",
      "description": "Underlying computational implementation and memory model"
    },
    {
      "name": "Maintenance Status",
      "unit": "",
      "description": "Current lifecycle status per official package repository"
    }
  ],
  "rows": [
    {
      "Package or Library": "tidyr",
      "Language Environment": "R (Tidyverse)",
      "Wide to Long Function": "pivot_longer()",
      "Long to Wide Function": "pivot_wider()",
      "Execution Engine": "Vectorized C++ vctrs engine",
      "Maintenance Status": "Active (Posit PBC)"
    },
    {
      "Package or Library": "data.table",
      "Language Environment": "R (Comprehensive)",
      "Wide to Long Function": "melt()",
      "Long to Wide Function": "dcast()",
      "Execution Engine": "In-place C-level memory mutation",
      "Maintenance Status": "Active (CRAN team)"
    },
    {
      "Package or Library": "stats (Base R)",
      "Language Environment": "R (Core)",
      "Wide to Long Function": "reshape(direction='long')",
      "Long to Wide Function": "reshape(direction='wide')",
      "Execution Engine": "Interpreted Base R algorithmic loops",
      "Maintenance Status": "Active (R Core Team)"
    },
    {
      "Package or Library": "reshape2",
      "Language Environment": "R (Historical)",
      "Wide to Long Function": "melt()",
      "Long to Wide Function": "dcast()",
      "Execution Engine": "Standard R/C vectorized code",
      "Maintenance Status": "Retired / Superseded"
    },
    {
      "Package or Library": "pandas",
      "Language Environment": "Python (PyData)",
      "Wide to Long Function": "melt()",
      "Long to Wide Function": "pivot() / pivot_table()",
      "Execution Engine": "Vectorized Cython and C/NumPy arrays",
      "Maintenance Status": "Active (NumFOCUS)"
    }
  ],
  "sources": [
    {
      "title": "CRAN tidyr Package Repository",
      "url": "https://cran.r-project.org/web/packages/tidyr/index.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "Official tidyr Documentation",
      "url": "https://tidyr.tidyverse.org/",
      "accessed": "2026-11-15"
    },
    {
      "title": "CRAN data.table Package Index",
      "url": "https://cran.r-project.org/web/packages/data.table/index.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "Base R stats::reshape Reference Manual",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/reshape.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "CRAN reshape2 Package Index",
      "url": "https://cran.r-project.org/web/packages/reshape2/index.html",
      "accessed": "2026-11-15"
    }
  ]
}