{
  "_id": "6a13eccfacfb0bcc41d2f16a",
  "Package": "matsindf",
  "Type": "Package",
  "Title": "Matrices in Data Frames",
  "Version": "0.4.11",
  "Date": "2025-11-16",
  "Authors@R": "c(person(\"Matthew\", \"Heun\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-7438-214X\"),\nemail = \"matthew.heun@me.com\"))",
  "Description": "Provides functions to collapse a tidy data frame into\nmatrices in a data frame and expand a data frame of matrices\ninto a tidy data frame.",
  "License": "MIT + file LICENSE",
  "Language": "en-US",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Config/testthat/start-first": "excel, matsindf_apply, utilities, collapse",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/MatthewHeun/matsindf,\nhttps://matthewheun.github.io/matsindf/",
  "BugReports": "https://github.com/MatthewHeun/matsindf/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://matthewheun.r-universe.dev",
  "Date/Publication": "2025-11-18 15:14:56 UTC",
  "RemoteUrl": "https://github.com/matthewheun/matsindf",
  "RemoteRef": "HEAD",
  "RemoteSha": "ffb69076def975eadae0883e57150066f03035de",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-25 06:28:26 UTC",
    "User": "root"
  },
  "Author": "Matthew Heun [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-7438-214X>)",
  "Maintainer": "Matthew Heun <matthew.heun@me.com>",
  "MD5sum": "2155bb8d77eda9e9c09ed42c130a5741",
  "_user": "matthewheun",
  "_type": "src",
  "_file": "matsindf_0.4.11.tar.gz",
  "_fileid": "94c42a1957c33f7b8db4da1b28aa7214efae73a91d6677714d7b38aeea5c8028",
  "_filesize": 391824,
  "_sha256": "94c42a1957c33f7b8db4da1b28aa7214efae73a91d6677714d7b38aeea5c8028",
  "_created": "2026-05-25T06:28:26.000Z",
  "_published": "2026-05-25T06:31:43.191Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77666951142,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7192884481"
    },
    {
      "job": 77666951159,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7192877717"
    },
    {
      "job": 77666951190,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7192878446"
    },
    {
      "job": 77666951185,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7192880634"
    },
    {
      "job": 77666545271,
      "time": 227,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7192850509"
    },
    {
      "job": 77666951173,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7192879475"
    },
    {
      "job": 77666951199,
      "time": 102,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7192873646"
    },
    {
      "job": 77666951154,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7192869724"
    },
    {
      "job": 77666951164,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7192871916"
    }
  ],
  "_buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/matthewheun/matsindf",
  "_commit": {
    "id": "ffb69076def975eadae0883e57150066f03035de",
    "author": "Matthew Heun <matthew.heun@me.com>",
    "committer": "Matthew Heun <matthew.heun@me.com>",
    "message": "Merge branch 'release-0.4.11'\n",
    "time": 1763478896
  },
  "_maintainer": {
    "name": "Matthew Heun",
    "email": "matthew.heun@me.com",
    "login": "matthewheun",
    "description": "",
    "uuid": 3308246,
    "orcid": "0000-0002-7438-214X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "matsbyname",
      "role": "Imports"
    },
    {
      "package": "openxlsx2",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "Hmisc",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "RCLabels",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "matthewheun",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 1
    },
    {
      "week": "2025-22",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.4.10",
      "date": "2025-05-26"
    },
    {
      "name": "v0.4.11",
      "date": "2025-11-18"
    }
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "matthewheun",
      "count": 944,
      "uuid": 3308246
    },
    {
      "user": "alex-l-m",
      "count": 1,
      "uuid": 35587576
    }
  ],
  "_userbio": {
    "uuid": 3308246,
    "type": "user",
    "name": "MatthewHeun"
  },
  "_downloads": {
    "count": 233,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/matsindf"
  },
  "_devurl": "https://github.com/matthewheun/matsindf",
  "_pkgdown": "https://matthewheun.github.io/matsindf/",
  "_searchresults": 42,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/matsindf.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/matthewheun/matsindf",
  "_realowner": "matthewheun",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.0",
      "date": "2019-02-11"
    },
    {
      "version": "0.3.1",
      "date": "2019-10-27"
    },
    {
      "version": "0.3.2",
      "date": "2019-12-06"
    },
    {
      "version": "0.3.3",
      "date": "2020-03-04"
    },
    {
      "version": "0.3.4",
      "date": "2020-03-22"
    },
    {
      "version": "0.3.6",
      "date": "2020-08-24"
    },
    {
      "version": "0.3.8",
      "date": "2021-09-03"
    },
    {
      "version": "0.3.9",
      "date": "2021-10-03"
    },
    {
      "version": "0.3.10",
      "date": "2021-12-17"
    },
    {
      "version": "0.3.11",
      "date": "2022-05-19"
    },
    {
      "version": "0.3.12",
      "date": "2023-01-25"
    },
    {
      "version": "0.4.0",
      "date": "2023-03-08"
    },
    {
      "version": "0.4.1",
      "date": "2023-04-26"
    },
    {
      "version": "0.4.3",
      "date": "2023-05-23"
    },
    {
      "version": "0.4.4",
      "date": "2023-08-18"
    },
    {
      "version": "0.4.5",
      "date": "2023-12-02"
    },
    {
      "version": "0.4.6",
      "date": "2023-12-10"
    },
    {
      "version": "0.4.7",
      "date": "2023-12-21"
    },
    {
      "version": "0.4.8",
      "date": "2024-02-01"
    },
    {
      "version": "0.4.10",
      "date": "2025-05-27"
    },
    {
      "version": "0.4.11",
      "date": "2025-11-18"
    }
  ],
  "_exports": [
    ":=",
    ".data",
    "%>%",
    "build_matsindf_apply_data_frame",
    "check_worksheet_name_violations",
    "collapse_to_matrices",
    "df_to_msg",
    "everything_except",
    "expand_to_tidy",
    "group_by_everything_except",
    "index_column",
    "mat_to_rowcolval",
    "matrix_cols",
    "matsindf_apply",
    "matsindf_apply_types",
    "rowcolval_to_mat",
    "verify_cols_missing",
    "write_mats_to_excel"
  ],
  "_datasets": [
    {
      "name": "UKEnergy2000",
      "title": "Energy consumption in the UK in 2000",
      "object": "UKEnergy2000",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Country",
        "Year",
        "Ledger.side",
        "Flow.aggregation.point",
        "Flow",
        "Product",
        "E.ktoe"
      ],
      "rows": 36,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_UKEnergy2000_matnames",
      "title": "Add a column of matrix names to tidy data frame",
      "topics": [
        "add_UKEnergy2000_matnames"
      ]
    },
    {
      "page": "add_UKEnergy2000_row_col_meta",
      "title": "Add row, column, row type, and column type metadata",
      "topics": [
        "add_UKEnergy2000_row_col_meta"
      ]
    },
    {
      "page": "build_keep_args",
      "title": "Build a list of arguments to keep",
      "topics": [
        "build_keep_args"
      ]
    },
    {
      "page": "build_matsindf_apply_data_frame",
      "title": "Create a data frame consisting of the input data for matsindf_apply()",
      "topics": [
        "build_matsindf_apply_data_frame"
      ]
    },
    {
      "page": "check_worksheet_name_violations",
      "title": "Develop a warning message for malformed Excel worksheet names",
      "topics": [
        "check_worksheet_name_violations"
      ]
    },
    {
      "page": "collapse_to_matrices",
      "title": "Collapse a \"tidy\" data frame to matrices in a data frame ('matsindf')",
      "topics": [
        "collapse_to_matrices"
      ]
    },
    {
      "page": "df_to_msg",
      "title": "Create a message from a data frame",
      "topics": [
        "df_to_msg"
      ]
    },
    {
      "page": "everything_except",
      "title": "Get symbols for all columns except ...",
      "topics": [
        "everything_except"
      ]
    },
    {
      "page": "expand_to_tidy",
      "title": "Expand a 'matsindf' data frame",
      "topics": [
        "expand_to_tidy"
      ]
    },
    {
      "page": "get_useable_default_args",
      "title": "Create a usable list of default arguments to a function",
      "topics": [
        "get_useable_default_args"
      ]
    },
    {
      "page": "group_by_everything_except",
      "title": "Group by all variables except some",
      "topics": [
        "group_by_everything_except"
      ]
    },
    {
      "page": "handle_empty_data",
      "title": "Gracefully handle empty data",
      "topics": [
        "handle_empty_data"
      ]
    },
    {
      "page": "handle_null_args",
      "title": "Gracefully handle 'NULL' arguments",
      "topics": [
        "handle_null_args"
      ]
    },
    {
      "page": "index_column",
      "title": "Index a column in a data frame by groups relative to an initial year",
      "topics": [
        "index_column"
      ]
    },
    {
      "page": "mat_to_rowcolval",
      "title": "Convert a matrix to a data frame with rows, columns, and values.",
      "topics": [
        "mat_to_rowcolval"
      ]
    },
    {
      "page": "matrix_cols",
      "title": "Find columns that contain matrices",
      "topics": [
        "matrix_cols"
      ]
    },
    {
      "page": "matsindf_apply",
      "title": "Apply a function to a 'matsindf' data frame (and more)",
      "topics": [
        "matsindf_apply"
      ]
    },
    {
      "page": "matsindf_apply_types",
      "title": "Determine types of '.dat' and '...' arguments for matsindf_apply()",
      "topics": [
        "matsindf_apply_types"
      ]
    },
    {
      "page": "rowcolval_to_mat",
      "title": "Collapse a tidy data frame into a matrix with named rows and columns",
      "topics": [
        "rowcolval_to_mat"
      ]
    },
    {
      "page": "should_unlist",
      "title": "Tell whether a column can be unlisted",
      "topics": [
        "should_unlist"
      ]
    },
    {
      "page": "UKEnergy2000",
      "title": "Energy consumption in the UK in 2000",
      "topics": [
        "UKEnergy2000"
      ]
    },
    {
      "page": "verify_cols_missing",
      "title": "Verify that column names in a data frame are not already present",
      "topics": [
        "verify_cols_missing"
      ]
    },
    {
      "page": "where_to_get_args",
      "title": "Decide where to get each argument to FUN",
      "topics": [
        "where_to_get_args"
      ]
    },
    {
      "page": "write_mats_to_excel",
      "title": "Write matrices to an Excel file",
      "topics": [
        "write_mats_to_excel"
      ]
    }
  ],
  "_readme": "https://github.com/matthewheun/matsindf/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "colorspace",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "matrixcalc",
    "matsbyname",
    "memoise",
    "mime",
    "nnet",
    "openxlsx2",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rappdirs",
    "RCLabels",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "midf_apply_primer.Rmd",
      "filename": "midf_apply_primer.html",
      "title": "A matsindf_apply primer",
      "author": "Matthew Kuperus Heun",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The basics",
        "Some details",
        "matsindf_apply() and data frames",
        "Programming with matsindf_apply()",
        "Conclusion"
      ],
      "created": "2019-01-07 21:21:10",
      "modified": "2025-11-18 15:14:56",
      "commits": 6
    },
    {
      "source": "matsindf.Rmd",
      "filename": "matsindf.html",
      "title": "Use Cases and Examples for matsindf",
      "author": "Matthew Kuperus Heun",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data: UKEnergy2000",
        "Suggested workflow",
        "Prepare for collapse",
        "Collapse",
        "Duplicate (for purposes of illustration)",
        "Verify data",
        "Efficiencies",
        "Expand",
        "Report",
        "Conclusion",
        "References"
      ],
      "created": "2017-12-26 20:12:54",
      "modified": "2025-11-18 15:14:56",
      "commits": 34
    },
    {
      "source": "iris_pca.Rmd",
      "filename": "iris_pca.html",
      "title": "Using matsindf for principal components analysis",
      "author": "Alexander Davis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Generate PCA results",
        "Conclusion"
      ],
      "created": "2021-12-17 15:02:27",
      "modified": "2021-12-17 15:02:27",
      "commits": 1
    }
  ],
  "_score": 5.878521795501206,
  "_indexed": true,
  "_nocasepkg": "matsindf",
  "_universes": [
    "matthewheun"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.11",
      "date": "2026-05-25T06:30:54.000Z",
      "distro": "noble",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "11cdcd0ad4936cb562d7faacc2d5c376458deb35f7f19e4b3c3d65e40c5cbe4b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.11",
      "date": "2026-05-25T06:30:29.000Z",
      "distro": "noble",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "5fe41d858d8e39e31f85027575c1daacf1438e9573ace7a3a6305ea7f77114aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.11",
      "date": "2026-05-25T06:30:37.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "3d01232fc1704ec565aea0667e4f1aafc5fd2ef573ac75728910a090c812d5da",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.11",
      "date": "2026-05-25T06:30:39.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "33c7ff45b5565db78e5762caaa50453942f327433e31d6ea6e3973099104c21f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.11",
      "date": "2026-05-25T06:30:55.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "ef49574e9136215233400612990a5f2388fca67921ec804610e2ffce667ca7eb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.11",
      "date": "2026-05-25T06:29:59.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "ef273cc460dcd7ee0e3a232c0b43e9877f66ba4d34b6d596f0d4c8e09662aec8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.11",
      "date": "2026-05-25T06:29:44.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "7065c414b7d483ee938db2324ff0b44d0e79130e21d21e764ebc3fddcbc4f610",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.11",
      "date": "2026-05-25T06:29:52.000Z",
      "commit": "ffb69076def975eadae0883e57150066f03035de",
      "fileid": "5c149191dbf47a8523ad19178dccf2a56fa7a67391cac96f6a5e214656e77b98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/matthewheun/actions/runs/26386643642"
    }
  ]
}