{
  "_id": "6a10610facfb0bcc41ca7855",
  "Package": "injurytools",
  "Title": "A Toolkit for Sports Injury and Illness Data Analysis",
  "Version": "2.0.1",
  "Authors@R": "c(\nperson(\"Lore\", \"Zumeta Olaskoaga\", , \"lorezumeta@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-6141-1469\")),\nperson(\"Dae-Jin\", \"Lee\", , \"daelee@faculty.ie.edu\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0002-8995-8535\"))\n)",
  "Description": "Sports Injury Data analysis aims to identify and describe\nthe magnitude of the injury problem, and to gain more insights\n(e.g. determine potential risk factors) by statistical\nmodelling approaches. The 'injurytools' package provides\nstandardized routines and utilities that simplify such\nanalyses. It offers functions for data preparation, informative\nvisualizations and descriptive and model-based analyses.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/lzumeta/injurytools,\nhttps://lzumeta.github.io/injurytools/",
  "BugReports": "https://github.com/lzumeta/injurytools/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://lzumeta.r-universe.dev",
  "Date/Publication": "2026-01-30 07:49:40 UTC",
  "RemoteUrl": "https://github.com/lzumeta/injurytools",
  "RemoteRef": "HEAD",
  "RemoteSha": "42524f41020c08f07ba4646fce42357afbe38643",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-08 08:19:17 UTC",
    "User": "root"
  },
  "Author": "Lore Zumeta Olaskoaga [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6141-1469>),\nDae-Jin Lee [ctb] (ORCID: <https://orcid.org/0000-0002-8995-8535>)",
  "Maintainer": "Lore Zumeta Olaskoaga <lorezumeta@gmail.com>",
  "MD5sum": "28da795949e9c560e325d643d29afb72",
  "_user": "lzumeta",
  "_type": "src",
  "_file": "injurytools_2.0.1.tar.gz",
  "_fileid": "39c4eb08e1d719062c90f652dfb40c14ef479a5af8d186c174ebb089e3d6ba69",
  "_filesize": 3761191,
  "_sha256": "39c4eb08e1d719062c90f652dfb40c14ef479a5af8d186c174ebb089e3d6ba69",
  "_created": "2026-05-08T08:19:17.000Z",
  "_published": "2026-05-22T13:58:39.526Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77394440253,
      "time": 202,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6874933879"
    },
    {
      "job": 77394440226,
      "time": 185,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874929681"
    },
    {
      "job": 77394440817,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6874922537"
    },
    {
      "job": 77394440110,
      "time": 214,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874925889"
    },
    {
      "job": 77394439777,
      "time": 243,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874880208"
    },
    {
      "job": 77394439646,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7162305688"
    },
    {
      "job": 77394440912,
      "time": 138,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6874916584"
    },
    {
      "job": 77394440611,
      "time": 134,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6874916020"
    },
    {
      "job": 77394440126,
      "time": 113,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6874910517"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lzumeta/injurytools",
  "_commit": {
    "id": "42524f41020c08f07ba4646fce42357afbe38643",
    "author": "Lore Zumeta <lorezumeta@gmail.com>",
    "committer": "Lore Zumeta <lorezumeta@gmail.com>",
    "message": "update\n",
    "time": 1769759380
  },
  "_maintainer": {
    "name": "Lore Zumeta Olaskoaga",
    "email": "lorezumeta@gmail.com",
    "login": "lzumeta",
    "uuid": 29726315,
    "orcid": "0000-0001-6141-1469"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "metR",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "coxme",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "pscl",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "survminer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "lzumeta",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-19",
      "n": 2
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 10
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 6
    }
  ],
  "_tags": [
    {
      "name": "v2.0.0",
      "date": "2025-11-28"
    },
    {
      "name": "v2.0.1",
      "date": "2026-01-26"
    }
  ],
  "_topics": [
    "sports",
    "sports-injuries"
  ],
  "_stars": 7,
  "_contributors": [
    {
      "user": "lzumeta",
      "count": 185,
      "uuid": 29726315
    },
    {
      "user": "davisvaughan",
      "count": 1,
      "uuid": 19150088
    }
  ],
  "_userbio": {
    "uuid": 29726315,
    "type": "user",
    "name": "Lore Zumeta Olaskoaga"
  },
  "_downloads": {
    "count": 258,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/injurytools"
  },
  "_devurl": "https://github.com/lzumeta/injurytools",
  "_pkgdown": "https://lzumeta.github.io/injurytools/",
  "_searchresults": 28,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/injurytools.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lzumeta/injurytools",
  "_realowner": "lzumeta",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-01-26"
    },
    {
      "version": "1.0.1",
      "date": "2023-02-01"
    },
    {
      "version": "1.0.2",
      "date": "2023-09-28"
    },
    {
      "version": "1.0.3",
      "date": "2023-11-14"
    },
    {
      "version": "2.0.0",
      "date": "2025-11-28"
    },
    {
      "version": "2.0.1",
      "date": "2026-01-26"
    }
  ],
  "_exports": [
    "calc_burden",
    "calc_exposure",
    "calc_incidence",
    "calc_iqr_dayslost",
    "calc_mean_dayslost",
    "calc_median_dayslost",
    "calc_ncases",
    "calc_ndayslost",
    "calc_prevalence",
    "calc_summary",
    "check_injfollowup",
    "cut_injd",
    "date2season",
    "get_data_exposures",
    "get_data_followup",
    "get_data_injuries",
    "gg_photo",
    "gg_prevalence",
    "gg_rank",
    "gg_riskmatrix",
    "is_injd",
    "prepare_all",
    "prepare_exp",
    "prepare_inj",
    "season2year"
  ],
  "_datasets": [
    {
      "name": "injd",
      "title": "Example of an 'injd' object",
      "object": "injd",
      "class": [
        "injd",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "person_id",
        "t0",
        "tf",
        "date_injured",
        "date_recovered",
        "tstart",
        "tstop",
        "tstart_minPlay",
        "tstop_minPlay",
        "status",
        "enum",
        "days_lost",
        "player_id",
        "season",
        "games_lost",
        "injury",
        "injury_acl",
        "injury_type",
        "injury_severity"
      ],
      "rows": 108,
      "table": true,
      "tojson": true
    },
    {
      "name": "raw_df_exposures",
      "title": "Minimal example of exposure data",
      "object": "raw_df_exposures",
      "class": [
        "data.frame"
      ],
      "fields": [
        "player_name",
        "player_id",
        "season",
        "year",
        "matches_played",
        "minutes_played",
        "liga",
        "club_name",
        "club_id",
        "age",
        "height",
        "place",
        "citizenship",
        "position",
        "foot",
        "goals",
        "assists",
        "yellows",
        "reds"
      ],
      "rows": 42,
      "table": true,
      "tojson": true
    },
    {
      "name": "raw_df_injuries",
      "title": "Minimal example of injury data",
      "object": "raw_df_injuries",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "player_name",
        "player_id",
        "season",
        "from",
        "until",
        "days_lost",
        "games_lost",
        "injury",
        "injury_acl",
        "injury_type",
        "injury_severity"
      ],
      "rows": 82,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_burden",
      "title": "Calculate case burden rate",
      "topics": [
        "calc_burden"
      ]
    },
    {
      "page": "calc_exposure",
      "title": "Calculate the exposure time",
      "topics": [
        "calc_exposure"
      ]
    },
    {
      "page": "calc_incidence",
      "title": "Calculate case incidence rate",
      "topics": [
        "calc_incidence"
      ]
    },
    {
      "page": "calc_iqr_dayslost",
      "title": "Calculate the interquartile range days lost",
      "topics": [
        "calc_iqr_dayslost"
      ]
    },
    {
      "page": "calc_mean_dayslost",
      "title": "Calculate the mean days lost",
      "topics": [
        "calc_mean_dayslost"
      ]
    },
    {
      "page": "calc_median_dayslost",
      "title": "Calculate the median days lost",
      "topics": [
        "calc_median_dayslost"
      ]
    },
    {
      "page": "calc_ncases",
      "title": "Calculate number of cases",
      "topics": [
        "calc_ncases"
      ]
    },
    {
      "page": "calc_ndayslost",
      "title": "Calculate number of days lost",
      "topics": [
        "calc_ndayslost"
      ]
    },
    {
      "page": "calc_prevalence",
      "title": "Calculate prevalence proportion",
      "topics": [
        "calc_prevalence"
      ]
    },
    {
      "page": "calc_summary",
      "title": "Calculate summary statistics",
      "topics": [
        "calc_summary"
      ]
    },
    {
      "page": "cut_injd",
      "title": "Cut the range of the follow-up",
      "topics": [
        "cut_injd"
      ]
    },
    {
      "page": "date2season",
      "title": "Get the season",
      "topics": [
        "date2season"
      ]
    },
    {
      "page": "get_data_exposures",
      "title": "Extract exposures data frame",
      "topics": [
        "get_data_exposures"
      ]
    },
    {
      "page": "get_data_followup",
      "title": "Extract follow-up data frame",
      "topics": [
        "get_data_followup"
      ]
    },
    {
      "page": "get_data_injuries",
      "title": "Extract injury/illness data frame",
      "topics": [
        "get_data_injuries"
      ]
    },
    {
      "page": "gg_photo",
      "title": "Plot injuries and illnesses over the follow-up period",
      "topics": [
        "gg_photo"
      ]
    },
    {
      "page": "gg_prevalence",
      "title": "Plot bar plots representing players' prevalence",
      "topics": [
        "gg_prevalence"
      ]
    },
    {
      "page": "gg_rank",
      "title": "Plot athlete's health problem incidence or burden ranking",
      "topics": [
        "gg_rank"
      ]
    },
    {
      "page": "gg_riskmatrix",
      "title": "Plot risk matrices",
      "topics": [
        "gg_riskmatrix"
      ]
    },
    {
      "page": "injd",
      "title": "Example of an 'injd' object",
      "topics": [
        "injd"
      ]
    },
    {
      "page": "is_injd",
      "title": "Check if an object is of class 'injd'",
      "topics": [
        "is_injd"
      ]
    },
    {
      "page": "prepare_data",
      "title": "Prepare data in a standardized format",
      "topics": [
        "prepare_all",
        "prepare_data",
        "prepare_exp",
        "prepare_inj"
      ]
    },
    {
      "page": "raw_df_exposures",
      "title": "Minimal example of exposure data",
      "topics": [
        "raw_df_exposures"
      ]
    },
    {
      "page": "raw_df_injuries",
      "title": "Minimal example of injury data",
      "topics": [
        "raw_df_injuries"
      ]
    },
    {
      "page": "season2year",
      "title": "Get the year",
      "topics": [
        "season2year"
      ]
    }
  ],
  "_pkglogo": "https://github.com/lzumeta/injurytools/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/lzumeta/injurytools/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "cachem",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "data.table",
    "DBI",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "fastmap",
    "forcats",
    "Formula",
    "formula.tools",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "KernSmooth",
    "labeling",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "memoise",
    "metR",
    "operator.tools",
    "pillar",
    "pkgconfig",
    "plyr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "s2",
    "S7",
    "scales",
    "sf",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "estimate-epi-measures.Rmd",
      "filename": "estimate-epi-measures.html",
      "title": "Estimate Measures of Injury Epidemiology",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Measures of occurrence",
        "Rates",
        "Injury incidence rate",
        "Injury burden rate",
        "Prevalence",
        "In practice",
        "- calc_summary()",
        "- calc_prevalence()",
        "Further implementation",
        "Notes",
        "References"
      ],
      "created": "2022-08-25 12:54:23",
      "modified": "2024-06-11 15:52:34",
      "commits": 29
    },
    {
      "source": "model-injury-data-i.Rmd",
      "filename": "model-injury-data-i.html",
      "title": "Model Sports Injuries as Counts",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Exploring the distribution of injuries",
        "- Poisson (mixed) model",
        "- Negative Binomial model",
        "- Zero-inflated Poisson model",
        "- Zero-inflated Negative Binomial model",
        "Model comparison"
      ],
      "created": "2023-09-25 07:04:38",
      "modified": "2026-01-26 11:02:05",
      "commits": 10
    },
    {
      "source": "model-injury-data-ii.Rmd",
      "filename": "model-injury-data-ii.html",
      "title": "Model Sports Injuries as Events",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Brief background",
        "Methods for time to first injury",
        "Kaplan-Meier curve",
        "Cox PH model",
        "Models for time to (subsequent) injuries",
        "Stratified Cox PH model",
        "Shared frailty model"
      ],
      "created": "2023-09-25 07:04:38",
      "modified": "2024-06-11 15:52:34",
      "commits": 11
    },
    {
      "source": "prepare-injury-data.Rmd",
      "filename": "prepare-injury-data.html",
      "title": "Prepare Sports Injury Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Starting point",
        "1) prepare and standardize injury and exposure data",
        "2) integrate both sources of data",
        "The prepared data set, an injd object"
      ],
      "created": "2022-08-25 12:54:23",
      "modified": "2026-01-25 18:09:26",
      "commits": 13
    },
    {
      "source": "visualize-injury-data.Rmd",
      "filename": "visualize-injury-data.html",
      "title": "Visualize Sports Injury Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A quick glance",
        "Comparing injuries occurred in 17/18 vs. 18/19",
        "- Who were the most injured players? And the most severely affected?",
        "- Which injuries were more frequent? And more burdensome?",
        "- How many players were injured in each month?"
      ],
      "created": "2023-01-24 12:01:34",
      "modified": "2024-06-11 15:52:34",
      "commits": 15
    }
  ],
  "_score": 6.468347330412158,
  "_indexed": true,
  "_nocasepkg": "injurytools",
  "_universes": [
    "lzumeta"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-05-08T08:22:10.000Z",
      "distro": "noble",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "6f0be75c27817063d13607028e66cb86d05cd60a798427d03ab5e207856a0b4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.1",
      "date": "2026-05-08T08:21:58.000Z",
      "distro": "noble",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "39fa8428327fc1992a33bd39f34f57c839dd03f408c4d513a492dc8119d70a0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.1",
      "date": "2026-05-08T08:21:44.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "f80e26b92c284bd691461238a15e073ce6d3b90ac32839113e3b138b1cd9c232",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.1",
      "date": "2026-05-08T08:21:47.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "d39ba33c175fad4138e6f345da07754befb0c6a925cb04bd825ff059c82c4114",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.1",
      "date": "2026-05-08T08:20:57.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "362777cae81eb3be3030ff794e2bb82c542a0151b1872a99e064c7e0c32ec32a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.1",
      "date": "2026-05-08T08:20:57.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "a1144e4616fbfe595121843c75a7d65924d36f566e56766fe483ffd0b187739c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.1",
      "date": "2026-05-08T08:20:39.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "b2a1b050eb71c4763cdcf91c39fe59fcf6f39b7160f18b96fb107f91bb6d0333",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.1",
      "date": "2026-05-22T13:58:20.000Z",
      "commit": "42524f41020c08f07ba4646fce42357afbe38643",
      "fileid": "ef4a1fa9a37e2703f08ae2db4b96f9dfdb1ee81e0c468de56b98fe89798a86df",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lzumeta/actions/runs/25544949236"
    }
  ]
}