{
  "_id": "6ad88261d556c3a3418a8821",
  "Package": "msSPChelpR",
  "Title": "Helper Functions for Second Primary Cancer Analyses",
  "Version": "0.9.1.9000",
  "Authors@R": "c(\nperson(given = \"Marian\", family = \"Eberl\", role = c(\"aut\", \"cre\"), email = \"marian.eberl@tum.de\", comment = c(ORCID = \"0000-0001-6584-3197\"))\n)",
  "Description": "A collection of helper functions for analyzing Second\nPrimary Cancer data, including functions to reshape data, to\ncalculate patient states and analyze cancer incidence.",
  "License": "GPL-3",
  "URL": "https://marianschmidt.github.io/msSPChelpR/",
  "BugReports": "https://github.com/marianschmidt/msSPChelpR/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.0",
  "Roxygen": "list(markdown = TRUE)",
  "Language": "en-US",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://marianschmidt.r-universe.dev",
  "Date/Publication": "2024-01-24 21:36:00 UTC",
  "RemoteUrl": "https://github.com/marianschmidt/msspchelpr",
  "RemoteRef": "HEAD",
  "RemoteSha": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-21 09:09:29 UTC",
    "User": "root"
  },
  "Author": "Marian Eberl [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6584-3197>)",
  "Maintainer": "Marian Eberl <marian.eberl@tum.de>",
  "_user": "marianschmidt",
  "_type": "src",
  "_file": "msSPChelpR_0.9.1.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/80624622b757f6e32d0b055895951691cddd323947ab6ed78012508537c001f4",
  "_filesize": 1894973,
  "_sha256": "80624622b757f6e32d0b055895951691cddd323947ab6ed78012508537c001f4",
  "_expires": "2027-01-29T09:14:07.000Z",
  "_created": "2026-10-21T09:09:29.000Z",
  "_published": "2026-10-21T09:14:08.970Z",
  "_buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 119137632196,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12332969949"
    },
    {
      "job": 119137632298,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12334565028"
    },
    {
      "job": 119137632124,
      "time": 149,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12333247838"
    },
    {
      "job": 119137632317,
      "time": 229,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12334520233"
    },
    {
      "job": 119135861563,
      "time": 244,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12333806505"
    },
    {
      "job": 119137632108,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12333961880"
    },
    {
      "job": 119137632296,
      "time": 103,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12334231544"
    },
    {
      "job": 119137632380,
      "time": 78,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12333777004"
    },
    {
      "job": 119137632321,
      "time": 107,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12333526836"
    }
  ],
  "_upstream": "https://github.com/marianschmidt/msspchelpr",
  "_commit": {
    "id": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
    "author": "marianschmidt <marian.schmidt@gmail.com>",
    "committer": "marianschmidt <marian.schmidt@gmail.com>",
    "message": "Increment version number to 0.9.1.9000\n",
    "time": 1706132160
  },
  "_maintainer": {
    "name": "Marian Eberl",
    "email": "marian.eberl@tum.de",
    "login": "marianschmidt",
    "description": "",
    "uuid": 6628272,
    "orcid": "0000-0001-6584-3197"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.1.2",
      "role": "Imports"
    },
    {
      "package": "sjlabelled",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "tidytable",
      "version": ">= 0.9.0",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "haven",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "marianschmidt",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "marianschmidt",
      "count": 655,
      "uuid": 6628272
    }
  ],
  "_userbio": {
    "uuid": 6628272,
    "type": "user",
    "name": "Marian Eberl",
    "followers": 4
  },
  "_downloads": {
    "count": 318,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/msSPChelpR"
  },
  "_devurl": "https://github.com/marianschmidt/msspchelpr",
  "_pkgdown": "https://marianschmidt.github.io/msSPChelpR/",
  "_searchresults": 14,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/msSPChelpR.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/marianschmidt/msspchelpr",
  "_realowner": "marianschmidt",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.8.6",
      "date": "2020-11-04"
    },
    {
      "version": "0.8.7",
      "date": "2021-07-01"
    },
    {
      "version": "0.9.0",
      "date": "2022-06-11"
    },
    {
      "version": "0.9.1",
      "date": "2024-01-23"
    }
  ],
  "_exports": [
    "%>%",
    "asir",
    "calc_futime",
    "calc_futime_tt",
    "calc_refrates",
    "histgroup_iarc",
    "ir_crosstab",
    "ir_crosstab_byfutime",
    "pat_status",
    "pat_status_tt",
    "renumber_time_id",
    "renumber_time_id_tt",
    "reshape_long",
    "reshape_long_tidyr",
    "reshape_long_tt",
    "reshape_wide",
    "reshape_wide_tidyr",
    "reshape_wide_tt",
    "sir_byfutime",
    "sir_ratio",
    "sir_ratio_lci",
    "sir_ratio_uci",
    "summarize_sir_results",
    "vital_status",
    "vital_status_tt"
  ],
  "_datasets": [
    {
      "name": "population_us",
      "title": "US Populations Data",
      "object": "population_us",
      "class": [
        "data.frame"
      ],
      "fields": [
        "region",
        "year",
        "sex",
        "age",
        "race",
        "population_pyar",
        "population_n_per_year"
      ],
      "rows": 4320,
      "table": true,
      "tojson": true
    },
    {
      "name": "standard_population",
      "title": "Standard Populations Data",
      "object": "standard_population",
      "class": [
        "data.frame"
      ],
      "fields": [
        "standard_pop",
        "sex",
        "age",
        "population_n",
        "group_proportion"
      ],
      "rows": 246,
      "table": true,
      "tojson": true
    },
    {
      "name": "us_refrates_icd2",
      "title": "US Reference Rates for Cancer Data (ICD-O 2digit code)",
      "object": "us_refrates_icd2",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "t_site",
        "region",
        "year",
        "sex",
        "age",
        "race",
        "comment",
        "incidence_cases",
        "population_pyar",
        "population_n_per_year",
        "incidence_crude_rate"
      ],
      "rows": 41472,
      "table": true,
      "tojson": true
    },
    {
      "name": "us_second_cancer",
      "title": "US Second Cancer Data",
      "object": "us_second_cancer",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "fake_id",
        "SEQ_NUM",
        "registry",
        "sex",
        "race",
        "datebirth",
        "t_datediag",
        "t_site_icd",
        "t_dco",
        "t_hist",
        "fc_age",
        "datedeath",
        "p_alive",
        "p_dodmin",
        "fc_agegroup",
        "t_yeardiag"
      ],
      "rows": 113999,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "asir",
      "title": "Calculate age-standardized incidence rates",
      "topics": [
        "asir"
      ]
    },
    {
      "page": "calc_futime",
      "title": "Calculate follow-up time per case until end of follow-up depending on pat_status - tidyverse version",
      "topics": [
        "calc_futime"
      ]
    },
    {
      "page": "calc_futime_tt",
      "title": "Calculate follow-up time per case until end of follow-up depending on pat_status - tidytable version",
      "topics": [
        "calc_futime_tt"
      ]
    },
    {
      "page": "calc_refrates",
      "title": "Calculate age-, sex-, cohort-, region-specific incidence rates from a cohort",
      "topics": [
        "calc_refrates"
      ]
    },
    {
      "page": "histgroup_iarc",
      "title": "Create variable for groups of malignant neoplasms considered to be histologically 'different' for the purpose of defining multiple tumors, ICD-O-3",
      "topics": [
        "histgroup_iarc"
      ]
    },
    {
      "page": "ir_crosstab",
      "title": "Calculate crude incidence rates and crosstabulate results by break variables",
      "topics": [
        "ir_crosstab"
      ]
    },
    {
      "page": "ir_crosstab_byfutime",
      "title": "Calculate crude incidence rates and cross-tabulate results by break variables; cumulative FU-times as are used as xbreak_var",
      "topics": [
        "ir_crosstab_byfutime"
      ]
    },
    {
      "page": "pat_status",
      "title": "Determine patient status at specific end of follow-up - tidyverse version",
      "topics": [
        "pat_status"
      ]
    },
    {
      "page": "pat_status_tt",
      "title": "Determine patient status at specific end of follow-up - tidytable version",
      "topics": [
        "pat_status_tt"
      ]
    },
    {
      "page": "population_us",
      "title": "US Populations Data",
      "topics": [
        "population_us"
      ]
    },
    {
      "page": "renumber_time_id",
      "title": "Renumber the time ID per case (i.e. Tumor sequence)",
      "topics": [
        "renumber_time_id"
      ]
    },
    {
      "page": "renumber_time_id_tt",
      "title": "Renumber the time ID per case (i.e. Tumor sequence) - tidytable version",
      "topics": [
        "renumber_time_id_tt"
      ]
    },
    {
      "page": "reshape_long",
      "title": "Reshape dataset to long format - stats::reshape version",
      "topics": [
        "reshape_long"
      ]
    },
    {
      "page": "reshape_long_tidyr",
      "title": "Reshape dataset to wide format - tidyr version",
      "topics": [
        "reshape_long_tidyr"
      ]
    },
    {
      "page": "reshape_long_tt",
      "title": "Reshape dataset to wide format - tidytable version",
      "topics": [
        "reshape_long_tt"
      ]
    },
    {
      "page": "reshape_wide",
      "title": "Reshape dataset to wide format",
      "topics": [
        "reshape_wide"
      ]
    },
    {
      "page": "reshape_wide_tidyr",
      "title": "Reshape dataset to wide format - tidyr version",
      "topics": [
        "reshape_wide_tidyr"
      ]
    },
    {
      "page": "reshape_wide_tt",
      "title": "Reshape dataset to wide format - tidytable version",
      "topics": [
        "reshape_wide_tt"
      ]
    },
    {
      "page": "sir_byfutime",
      "title": "Calculate standardized incidence ratios with custom grouping variables stratified by follow-up time",
      "topics": [
        "sir_byfutime"
      ]
    },
    {
      "page": "sir_ratio",
      "title": "Calculate Ratio of two SIRs or SMRs",
      "topics": [
        "sir_ratio",
        "sir_ratio_lci",
        "sir_ratio_uci"
      ]
    },
    {
      "page": "standard_population",
      "title": "Standard Populations Data",
      "topics": [
        "standard_population"
      ]
    },
    {
      "page": "summarize_sir_results",
      "title": "Summarize detailed SIR results",
      "topics": [
        "summarize_sir_results"
      ]
    },
    {
      "page": "us_refrates_icd2",
      "title": "US Reference Rates for Cancer Data (ICD-O 2digit code)",
      "topics": [
        "us_refrates_icd2"
      ]
    },
    {
      "page": "us_second_cancer",
      "title": "US Second Cancer Data",
      "topics": [
        "us_second_cancer"
      ]
    },
    {
      "page": "vital_status",
      "title": "Determine vital status at end of follow-up depending on pat_status - tidyverse version",
      "topics": [
        "vital_status"
      ]
    },
    {
      "page": "vital_status_tt",
      "title": "Determine vital status at end of follow-up depending on pat_status - tidytable version",
      "topics": [
        "vital_status_tt"
      ]
    }
  ],
  "_readme": "https://github.com/marianschmidt/msspchelpr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "datawizard",
    "dplyr",
    "generics",
    "glue",
    "insight",
    "lifecycle",
    "lubridate",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "sjlabelled",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tidytable",
    "timechange",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to the msSPChelpR package - from long dataset to SIR analyses",
      "author": "Marian Eberl",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Recommended Workflows",
        "Calculate follow-up times",
        "Calculate Standardized Incidence Ratios (SIR)",
        "Theory behind SIRs",
        "Examples",
        "SEER lung cancer",
        "Step 1 - Long dataset",
        "Step 2 - Filter long dataset",
        "Step 3 - Renumber time_id",
        "Step 4 - Reshape to wide dataset",
        "Step 5 - Recalculate p_spc",
        "Step 6 - Determine patient status at end of FU",
        "Step 6b - Remove patients irrelevant to analysis depending on status",
        "Step 7 - Calculate FU time",
        "Step 8 - Calculate SIR",
        "Step 9 - Summarize SIR results",
        "Built with"
      ],
      "created": "2020-03-11 08:31:00",
      "modified": "2023-06-14 15:27:02",
      "commits": 32
    }
  ],
  "_score": 4.146128035678238,
  "_indexed": true,
  "_nocasepkg": "msspchelpr",
  "_universes": [
    "marianschmidt"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:11:47.000Z",
      "distro": "resolute",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/2017d3d18b19028d229cdf5dbe85f6d0ec35ccfcd423cfc9cea2c19f3e2b3d05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:11:49.000Z",
      "distro": "resolute",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/f6ff0926e0f5539ac550b254a867fe2b5a00be014541c74049b335d2c3e05805",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:11:35.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/ba0bbdbee48e1f5090cec980f375b4bf0ef7c7d3d66442c79b12efb5583b0af3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:12:07.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/6157e62119bd5dde20ed87093dc5e54410d8acda21ebddd2306fd496b08fbcf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:11:43.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/2233d56b417e2888c90edd9097d1a90810a7709baebb2a6196276c59f81f6358",
      "status": "success",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:10:46.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/02355019e42207ddb6c0c5914e64723f6fbdea527c6cd7a7519acd7e1decfb1b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:10:40.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/f3d69000208570848120fab2ddeaafaf1461b00d8e53ac7a8b3d37adc25f1f09",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.9.1.9000",
      "date": "2026-10-21T09:10:52.000Z",
      "commit": "7a074d3c638a28a930820f3df2ab7f8f5beab960",
      "fileid": "https://r2.ropensci.org/6dfa1445fb9464d9924970d7cd49b85c17357ddc507d27ef141bd70d2624330e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/marianschmidt/actions/runs/39574255251"
    }
  ]
}