{
  "_id": "6a101de8acfb0bcc41c8a787",
  "Package": "psHarmonize",
  "Title": "Creates a Harmonized Dataset Based on a Set of Instructions",
  "Version": "0.3.6",
  "Authors@R": "c(person(given = \"John\",\nfamily = \"Stephen\",\nrole = c(\"aut\", \"cre\"),\nemail = \"John.Stephen@northwestern.edu\",\ncomment = c(ORCID = \"0000-0001-7309-9193\")),\nperson(given = \"Maxwell\",\nfamily = \"Mansolf\",\nrole = \"ctb\",\nemail = \"maxwell.mansolf@northwestern.edu\",\ncomment = c(ORCID = \"0000-0001-6861-8657\")))",
  "Description": "Functions which facilitate harmonization of data from\nmultiple different datasets. Data harmonization involves taking\ndata sources with differing values, creating coding\ninstructions to create a harmonized set of values, then making\nthose data modifications. 'psHarmonize' will assist with data\nmodification once the harmonization instructions are written.\nCoding instructions are written by the user to create a\n\"harmonization sheet\". This sheet catalogs variable names,\ndomains (e.g. clinical, behavioral, outcomes), provides R code\ninstructions for mapping or conversion of data, specifies the\nvariable name in the harmonized data set, and tracks notes. The\npackage will then harmonize the source datasets according to\nthe harmonization sheet to create a harmonized dataset. Once\nharmonization is finished, the package also has functions that\nwill create descriptive statistics using 'RMarkdown'. Data\nHarmonization guidelines have been described by Fortier I,\nRaina P, Van den Heuvel ER, et al. (2017)\n<doi:10.1093/ije/dyw075>. Additional details of our R package\nhave been described by Stephen JJ, Carolan P, Krefman AE, et\nal. (2024) <doi:10.1016/j.patter.2024.101003>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/NUDACC/psHarmonize",
  "BugReports": "https://github.com/NUDACC/psHarmonize/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://nudacc.r-universe.dev",
  "Date/Publication": "2025-10-16 21:04:08 UTC",
  "RemoteUrl": "https://github.com/nudacc/psharmonize",
  "RemoteRef": "HEAD",
  "RemoteSha": "cb87f737587196af67b45df5184790f6709c30ef",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-14 07:41:06 UTC",
    "User": "root"
  },
  "Author": "John Stephen [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7309-9193>),\nMaxwell Mansolf [ctb] (ORCID: <https://orcid.org/0000-0001-6861-8657>)",
  "Maintainer": "John Stephen <John.Stephen@northwestern.edu>",
  "MD5sum": "a5ff7a09cc96e3fb23a163b1b3d37822",
  "_user": "nudacc",
  "_type": "src",
  "_file": "psHarmonize_0.3.6.tar.gz",
  "_fileid": "81fb4554101f90fcfcc2ff61eeba1631595ad2eca9bcc76e45f74b9851da0d28",
  "_filesize": 822091,
  "_sha256": "81fb4554101f90fcfcc2ff61eeba1631595ad2eca9bcc76e45f74b9851da0d28",
  "_created": "2026-05-14T07:41:06.000Z",
  "_published": "2026-05-22T09:12:08.753Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77350262159,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6989631601"
    },
    {
      "job": 77350262491,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6989630750"
    },
    {
      "job": 77350262072,
      "time": 178,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6989634591"
    },
    {
      "job": 77350262179,
      "time": 137,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6989625393"
    },
    {
      "job": 77350261569,
      "time": 169,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6989596578"
    },
    {
      "job": 77350261460,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156956239"
    },
    {
      "job": 77350262161,
      "time": 92,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6989619624"
    },
    {
      "job": 77350262326,
      "time": 89,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6989618893"
    },
    {
      "job": 77350262009,
      "time": 146,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6989632694"
    }
  ],
  "_buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/nudacc/psharmonize",
  "_commit": {
    "id": "cb87f737587196af67b45df5184790f6709c30ef",
    "author": "John Stephen <John.Stephen@northwestern.edu>",
    "committer": "John Stephen <John.Stephen@northwestern.edu>",
    "message": "Updated version of suggested RoxygenNote\n",
    "time": 1760648648
  },
  "_maintainer": {
    "name": "John Stephen",
    "email": "john.stephen@northwestern.edu",
    "login": "johnjstepnu",
    "uuid": 103282996,
    "orcid": "0000-0001-7309-9193"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "nudacc",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "johnjstepnu",
      "count": 100,
      "uuid": 103282996
    },
    {
      "user": "mmansolf",
      "count": 1,
      "uuid": 102836199
    }
  ],
  "_userbio": {
    "uuid": 106272384,
    "type": "organization",
    "name": "Northwestern University Data Analysis & Coordinating Center"
  },
  "_downloads": {
    "count": 159,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/psHarmonize"
  },
  "_devurl": "https://github.com/nudacc/psharmonize",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/psHarmonize.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/nudacc/psharmonize",
  "_realowner": "nudacc",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.5",
      "date": "2025-01-17"
    },
    {
      "version": "0.3.6",
      "date": "2025-10-16"
    }
  ],
  "_exports": [
    "%>%",
    "code_modify_func",
    "code_modify_func_multi",
    "code_modify_recode",
    "cohort_shell_func",
    "cont_or_cat",
    "create_error_log_report",
    "create_long_dataset",
    "create_summary_report",
    "harmonization",
    "range_function",
    "range_function_cat",
    "reorder_factors",
    "reorder_factors_df"
  ],
  "_datasets": [
    {
      "name": "cohort_a",
      "title": "Cohort A",
      "object": "cohort_a",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "idvar",
        "age",
        "height_1",
        "weight_1",
        "education",
        "height_2",
        "weight_2",
        "height_3",
        "weight_3"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cohort_b",
      "title": "Cohort B",
      "object": "cohort_b",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "ID",
        "Age",
        "hgt_in",
        "wgt_kg",
        "edu_cat"
      ],
      "rows": 5000,
      "table": true,
      "tojson": true
    },
    {
      "name": "cohort_c",
      "title": "Cohort C",
      "object": "cohort_c",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "cohort_id",
        "age",
        "height_cm",
        "weight_lbs",
        "edu"
      ],
      "rows": 7000,
      "table": true,
      "tojson": true
    },
    {
      "name": "error_harmonization_sheet_example",
      "title": "Error harmonization sheet example",
      "object": "error_harmonization_sheet_example",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id_var",
        "item",
        "study",
        "domain",
        "subdomain",
        "source_dataset",
        "source_item",
        "visit",
        "code1",
        "code_type",
        "coding_notes",
        "possible_range"
      ],
      "rows": 16,
      "table": true,
      "tojson": true
    },
    {
      "name": "harmonization_sheet_example",
      "title": "Harmonization sheet example",
      "object": "harmonization_sheet_example",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id_var",
        "item",
        "study",
        "domain",
        "subdomain",
        "source_dataset",
        "source_item",
        "visit",
        "code1",
        "code_type",
        "coding_notes",
        "possible_range"
      ],
      "rows": 16,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "code_modify_func",
      "title": "Code modify function. To be called by the harmonization function.",
      "topics": [
        "code_modify_func"
      ]
    },
    {
      "page": "code_modify_func_multi",
      "title": "Code modify function (multiple variables). To be called by the harmonization function.",
      "topics": [
        "code_modify_func_multi"
      ]
    },
    {
      "page": "code_modify_recode",
      "title": "Code modify recode. To be called by harmonization function.",
      "topics": [
        "code_modify_recode"
      ]
    },
    {
      "page": "cohort_a",
      "title": "Cohort A",
      "topics": [
        "cohort_a"
      ]
    },
    {
      "page": "cohort_b",
      "title": "Cohort B",
      "topics": [
        "cohort_b"
      ]
    },
    {
      "page": "cohort_c",
      "title": "Cohort C",
      "topics": [
        "cohort_c"
      ]
    },
    {
      "page": "cohort_shell_func",
      "title": "Cohort sheet create. To be called by harmonization function.",
      "topics": [
        "cohort_shell_func"
      ]
    },
    {
      "page": "cont_or_cat",
      "title": "Continuous or categorical",
      "topics": [
        "cont_or_cat"
      ]
    },
    {
      "page": "create_error_log_report",
      "title": "Error log report creation",
      "topics": [
        "create_error_log_report"
      ]
    },
    {
      "page": "create_long_dataset",
      "title": "Create long dataset.",
      "topics": [
        "create_long_dataset"
      ]
    },
    {
      "page": "create_summary_report",
      "title": "Summary report creation",
      "topics": [
        "create_summary_report"
      ]
    },
    {
      "page": "error_harmonization_sheet_example",
      "title": "Error harmonization sheet example",
      "topics": [
        "error_harmonization_sheet_example"
      ]
    },
    {
      "page": "harmonization",
      "title": "Harmonization Function",
      "topics": [
        "harmonization"
      ]
    },
    {
      "page": "harmonization_sheet_example",
      "title": "Harmonization sheet example",
      "topics": [
        "harmonization_sheet_example"
      ]
    },
    {
      "page": "range_function",
      "title": "Range function. To be called by harmonization function.",
      "topics": [
        "range_function"
      ]
    },
    {
      "page": "range_function_cat",
      "title": "Possible values for categorical variables. To be called by harmonization function.",
      "topics": [
        "range_function_cat"
      ]
    },
    {
      "page": "reorder_factors",
      "title": "Reorder factors",
      "topics": [
        "reorder_factors"
      ]
    },
    {
      "page": "reorder_factors_df",
      "title": "Reorder factors data.frame",
      "topics": [
        "reorder_factors_df"
      ]
    },
    {
      "page": "summary.psHarmonize",
      "title": "psHarmonize summary method",
      "topics": [
        "summary.psHarmonize"
      ]
    }
  ],
  "_readme": "https://github.com/nudacc/psharmonize/raw/HEAD/readme.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "cpp11",
    "digest",
    "dplyr",
    "evaluate",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "glue",
    "highr",
    "htmltools",
    "jquerylib",
    "jsonlite",
    "knitr",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "rlang",
    "rmarkdown",
    "sass",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "Harmonization_sheet.Rmd",
      "filename": "Harmonization_sheet.html",
      "title": "Harmonization sheet instructions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Recode category",
        "Function",
        "Functions (multiple variables input)",
        "Multi step variables"
      ],
      "created": "2023-06-09 20:33:37",
      "modified": "2023-06-09 20:33:37",
      "commits": 1
    },
    {
      "source": "psHarmonize.Rmd",
      "filename": "psHarmonize.html",
      "title": "Introduction to psHarmonize",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Harmonization sheet",
        "Cohort data",
        "Cohort A",
        "Cohort B",
        "Cohort C",
        "Harmonization process",
        "Creating harmonization sheet",
        "Calling harmonization function",
        "Extracting harmonization objects",
        "Long dataset",
        "Wide dataset",
        "Error log",
        "Creating reports",
        "Error report",
        "Summary report"
      ],
      "created": "2023-06-09 20:33:37",
      "modified": "2024-03-26 16:41:29",
      "commits": 2
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "psharmonize",
  "_universes": [
    "nudacc",
    "johnjstepnu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.6",
      "date": "2026-05-14T07:43:18.000Z",
      "distro": "noble",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "4f0b48bd7bdc79e05c65394006080f5f3d6dc395fd18a8cea76ef0f558fcc914",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.6",
      "date": "2026-05-14T07:43:18.000Z",
      "distro": "noble",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "506297012dc2443fd1e3eca751c433c8fa4fe994742c9aa3dd7f1fda2b8c1aa4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.6",
      "date": "2026-05-14T07:43:34.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "ec9a389cd3ad39a114a15ae39aa5aca53bd17e1d557718f2d35f8ece95264cbc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.6",
      "date": "2026-05-14T07:43:02.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "0e50e6ee7aacb1a74bc50109409f2c5c0aeca37c20db82a4d0190eb65338c125",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-05-14T07:42:22.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "46e0dbaad819004e9051eb5b97764aa635a1c40217223145b0f3c3aa2bbde42f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-05-14T07:42:25.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "a28282e3f4c258c24d47948169425090e7dbf43602a6ade5d77b9495cd67719f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-05-14T07:43:17.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "5f31c2d883b0c6c2329f42f3638eacfb374c460551625827a3548fb62f34f40d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.6",
      "date": "2026-05-22T09:11:48.000Z",
      "commit": "cb87f737587196af67b45df5184790f6709c30ef",
      "fileid": "29a7d64605c73fe160989d2a6c67ea5e4d3f7a13c41476a24c68aa81b11aacc6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/nudacc/actions/runs/25848134150"
    }
  ]
}