{
  "_id": "6a2836c6732311cd8758227e",
  "Package": "socR",
  "Type": "Package",
  "Title": "Useful functions for working with occupation coding",
  "Version": "0.8.0",
  "Authors@R": "person(c(\"Daniel\",\"E.\"),\"Russ\", email=\"druss@mail.nih.gov\",role=c(\"aut\",\"cre\"),\ncomment = c(ORCID = \"0000-0003-4040-4416\"))",
  "Maintainer": "Daniel E. Russ <druss@mail.nih.gov>",
  "Description": "A set of functions that I find useful in my research into\noccupational coding and codes.",
  "License": "file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://danielruss.github.io/socR/",
  "Config/pak/sysreqs": "make libicu-dev libssl-dev libx11-dev zlib1g-dev",
  "Repository": "https://danielruss.r-universe.dev",
  "Date/Publication": "2025-07-22 21:01:26 UTC",
  "RemoteUrl": "https://github.com/danielruss/socR",
  "RemoteRef": "main",
  "RemoteSha": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 15:48:17 UTC",
    "User": "root"
  },
  "Author": "Daniel E. Russ [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4040-4416>)",
  "MD5sum": "d53be4805d6021f2093483a1193df0e2",
  "_user": "danielruss",
  "_type": "src",
  "_file": "socR_0.8.0.tar.gz",
  "_fileid": "2f65e31d2b44b75d7e71eef8bbc9b04485328f9fd9f667a6acc0e2a1dab3e62f",
  "_filesize": 518134,
  "_sha256": "2f65e31d2b44b75d7e71eef8bbc9b04485328f9fd9f667a6acc0e2a1dab3e62f",
  "_created": "2026-06-09T15:48:17.000Z",
  "_published": "2026-06-09T15:52:38.402Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80365734637,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7512916288"
    },
    {
      "job": 80365735097,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7512912740"
    },
    {
      "job": 80365734644,
      "time": 191,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7512902342"
    },
    {
      "job": 80365734629,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7512896510"
    },
    {
      "job": 80364676067,
      "time": 300,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7512823567"
    },
    {
      "job": 80365734636,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7512891028"
    },
    {
      "job": 80365734634,
      "time": 110,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7512880922"
    },
    {
      "job": 80365734886,
      "time": 92,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7512879170"
    },
    {
      "job": 80365734732,
      "time": 100,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7512873784"
    }
  ],
  "_buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/danielruss/socR",
  "_commit": {
    "id": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
    "author": "Daniel Russ <druss@mail.nih.gov>",
    "committer": "Daniel Russ <druss@mail.nih.gov>",
    "message": "fix score and warn instead of stopping\n",
    "time": 1753218086
  },
  "_maintainer": {
    "name": "Daniel E. Russ",
    "email": "druss@mail.nih.gov",
    "login": "danielruss",
    "orcid": "0000-0003-4040-4416",
    "description": "Data Scientist",
    "uuid": 3767675
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "httr",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "readxl",
      "role": "Imports"
    },
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "RSQLite",
      "role": "Imports"
    },
    {
      "package": "rio",
      "role": "Imports"
    },
    {
      "package": "pillar",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "danielruss",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-28",
      "n": 1
    },
    {
      "week": "2025-30",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "danielruss",
      "count": 102,
      "uuid": 3767675
    },
    {
      "user": "gitter-badger",
      "count": 1,
      "uuid": 8518239
    }
  ],
  "_userbio": {
    "uuid": 3767675,
    "type": "user",
    "name": "danielruss",
    "description": "Data Scientist"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/socR"
  },
  "_devurl": "https://github.com/danielruss/socr",
  "_pkgdown": "https://danielruss.github.io/socR/",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/socR.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "arrange",
    "as_codingsystem",
    "as_tibble",
    "bin_center",
    "codeJobHistory",
    "codes",
    "codesAgree",
    "codingsystem",
    "combine_crosswalks",
    "count",
    "createMultiHotEncoder",
    "crosswalk",
    "crosswalk_columns",
    "extend_standard_soc1980_codes",
    "filter",
    "get_codes",
    "is_most_detailed_extended_soc1980",
    "is_most_detailed_soc1980",
    "is_url",
    "is_valid",
    "is_valid_6digit_soc2010",
    "is_valid_extended_soc1980",
    "is_valid_soc1980",
    "is.codingsystem",
    "is.xwalk",
    "level",
    "load_socassign_db",
    "lookup_code",
    "make_code_str",
    "mutate",
    "name",
    "select",
    "split_data",
    "standardize_soc1980_codes",
    "to_level",
    "to_list_column",
    "valid_code",
    "xwalk",
    "xwalk_entropy"
  ],
  "_datasets": [
    {
      "name": "noc2011_4digit",
      "title": "noc2011 4 digit classification system",
      "object": "noc2011_4digit",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "noc2011_all",
      "title": "noc2011 4 digit classification system",
      "object": "noc2011_all",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc1980_all",
      "title": "SOC 1980 complete classification system",
      "object": "soc1980_all",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc1980_detailed",
      "title": "Detailed SOC 1980 classification system",
      "object": "soc1980_detailed",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc1980_extended",
      "title": "Extended SOC 1980 complete classification system",
      "object": "soc1980_extended",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc2010_6digit",
      "title": "soc2010 6 digit classification system",
      "object": "soc2010_6digit",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc2010_all",
      "title": "Complete SOC 2010 classification system",
      "object": "soc2010_all",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "soc2018_all",
      "title": "Complete SOC 2018 classification system",
      "object": "soc2018_all",
      "class": [
        "codingsystem"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "as_codingsystem",
      "title": "Create a coding system from a data frame",
      "topics": [
        "as_codingsystem",
        "as_codingsystem.codingsystem",
        "as_codingsystem.data.frame"
      ]
    },
    {
      "page": "bin_center",
      "title": "Bin Score and Assign center value",
      "topics": [
        "bin_center"
      ]
    },
    {
      "page": "codeJobHistory",
      "title": "Auto-code job results with SOCcer using via the soccer API",
      "topics": [
        "codeJobHistory"
      ]
    },
    {
      "page": "codes",
      "title": "get the codes for a crosswalk,",
      "topics": [
        "codes"
      ]
    },
    {
      "page": "codesAgree",
      "title": "Check if codes agree with reviewer",
      "topics": [
        "codesAgree"
      ]
    },
    {
      "page": "codingsystem",
      "title": "constructor create a coding system S3 class",
      "topics": [
        "codingsystem"
      ]
    },
    {
      "page": "combine_crosswalks",
      "title": "Combine two crosswalks to produce a new crosswalk",
      "topics": [
        "combine_crosswalks"
      ]
    },
    {
      "page": "createMultiHotEncoder",
      "title": "creates a multihot encoder from a list of labels",
      "topics": [
        "createMultiHotEncoder"
      ]
    },
    {
      "page": "crosswalk",
      "title": "Use the concordance table (crosswalk) to convert from one coding system to another.",
      "topics": [
        "crosswalk"
      ]
    },
    {
      "page": "crosswalk_columns",
      "title": "Crosswalk multiple columns in a tibble/data frame",
      "topics": [
        "crosswalk_columns"
      ]
    },
    {
      "page": "dim.codingsystem",
      "title": "Dimensions of an Object",
      "topics": [
        "dim.codingsystem"
      ]
    },
    {
      "page": "extend_standard_soc1980_codes",
      "title": "Extended SOC 1980 codes",
      "topics": [
        "extend_standard_soc1980_codes"
      ]
    },
    {
      "page": "xwalk_dplyr",
      "title": "Using dplyr verbs with crosswalks",
      "topics": [
        "arrange.xwalk",
        "as_tibble.xwalk",
        "dplyr verbs for crosswalks",
        "filter.xwalk"
      ]
    },
    {
      "page": "format.codingsystem",
      "title": "formats a codingsystem",
      "topics": [
        "format.codingsystem"
      ]
    },
    {
      "page": "get_codes",
      "title": "Get a list of codes from a coding system",
      "topics": [
        "get_codes"
      ]
    },
    {
      "page": "head.codingsystem",
      "title": "Return the First or Last Parts of an Object",
      "topics": [
        "head.codingsystem"
      ]
    },
    {
      "page": "is_url",
      "title": "Check if a value is a url by looking for the http(s):// .Works with vectors...",
      "topics": [
        "is_url"
      ]
    },
    {
      "page": "is_valid",
      "title": "Check if a set of codes are valid for a coding system",
      "topics": [
        "is_valid"
      ]
    },
    {
      "page": "is.codingsystem",
      "title": "checks if an object is a coding system",
      "topics": [
        "is.codingsystem"
      ]
    },
    {
      "page": "is.xwalk",
      "title": "checks if an object is a crosswalk",
      "topics": [
        "is.xwalk"
      ]
    },
    {
      "page": "level",
      "title": "Get the code Level",
      "topics": [
        "level",
        "level.codingsystem"
      ]
    },
    {
      "page": "load_socassign_db",
      "title": "load_socassign_db",
      "topics": [
        "load_socassign_db"
      ]
    },
    {
      "page": "lookup_code",
      "title": "Look up code",
      "topics": [
        "lookup_code"
      ]
    },
    {
      "page": "make_code_str",
      "title": "convert a list column of codes to vector of string for display",
      "topics": [
        "make_code_str"
      ]
    },
    {
      "page": "name",
      "title": "Returns the user assigned name of the coding system",
      "topics": [
        "name"
      ]
    },
    {
      "page": "noc2011_4digit",
      "title": "noc2011 4 digit classification system",
      "topics": [
        "noc2011_4digit"
      ]
    },
    {
      "page": "noc2011_all",
      "title": "noc2011 4 digit classification system",
      "topics": [
        "noc2011_all"
      ]
    },
    {
      "page": "print.codingsystem",
      "title": "prints a codingsystem",
      "topics": [
        "print.codingsystem"
      ]
    },
    {
      "page": "codingsystem_dplyr",
      "title": "Use Coding system with dplyr",
      "topics": [
        "arrange.codingsystem",
        "as_tibble.codingsystem",
        "count.codingsystem",
        "filter.codingsystem",
        "mutate.codingsystem",
        "select.codingsystem"
      ]
    },
    {
      "page": "soc1980_all",
      "title": "SOC 1980 complete classification system",
      "topics": [
        "soc1980_all"
      ]
    },
    {
      "page": "soc1980_detailed",
      "title": "Detailed SOC 1980 classification system",
      "topics": [
        "soc1980_detailed"
      ]
    },
    {
      "page": "soc1980_extended",
      "title": "Extended SOC 1980 complete classification system",
      "topics": [
        "soc1980_extended"
      ]
    },
    {
      "page": "soc2010_6digit",
      "title": "soc2010 6 digit classification system",
      "topics": [
        "soc2010_6digit"
      ]
    },
    {
      "page": "soc2010_all",
      "title": "Complete SOC 2010 classification system",
      "topics": [
        "soc2010_all"
      ]
    },
    {
      "page": "soc2018_all",
      "title": "Complete SOC 2018 classification system",
      "topics": [
        "soc2018_all"
      ]
    },
    {
      "page": "split_data",
      "title": "Split data",
      "topics": [
        "split_data"
      ]
    },
    {
      "page": "standardize_soc1980_codes",
      "title": "Standardize US SOC 1980 codes",
      "topics": [
        "standardize_soc1980_codes"
      ]
    },
    {
      "page": "tail.codingsystem",
      "title": "Return the First or Last Parts of an Object",
      "topics": [
        "tail.codingsystem"
      ]
    },
    {
      "page": "to_level",
      "title": "to_level",
      "topics": [
        "to_level"
      ]
    },
    {
      "page": "to_list_column",
      "title": "Create a list column from multiple columns",
      "topics": [
        "to_list_column"
      ]
    },
    {
      "page": "valid_code",
      "title": "Is valid code",
      "topics": [
        "is_most_detailed_extended_soc1980",
        "is_most_detailed_soc1980",
        "is_valid_6digit_soc2010",
        "is_valid_extended_soc1980",
        "is_valid_soc1980",
        "valid_code"
      ]
    },
    {
      "page": "xwalk",
      "title": "xwalk class constructor",
      "topics": [
        "xwalk"
      ]
    },
    {
      "page": "xwalk_entropy",
      "title": "Calculates the Shannon entropy for a Crosswalk",
      "topics": [
        "xwalk_entropy"
      ]
    }
  ],
  "_pkglogo": "https://github.com/danielruss/socR/raw/main/man/figures/logo.png",
  "_readme": "https://github.com/danielruss/socR/raw/main/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "blob",
    "cachem",
    "cellranger",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "DBI",
    "digest",
    "dplyr",
    "fastmap",
    "forcats",
    "foreign",
    "generics",
    "glue",
    "haven",
    "hms",
    "httr",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R.methodsS3",
    "R.oo",
    "R.utils",
    "R6",
    "readr",
    "readxl",
    "rematch",
    "rio",
    "rlang",
    "RSQLite",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "writexl"
  ],
  "_vignettes": [
    {
      "source": "Built_on_tidyverse.Rmd",
      "filename": "Built_on_tidyverse.html",
      "title": "Built on tidyverse",
      "author": "Daniel Russ",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2025-05-09 21:08:45",
      "modified": "2025-05-12 20:22:55",
      "commits": 3
    },
    {
      "source": "GettingStarted.Rmd",
      "filename": "GettingStarted.html",
      "title": "Getting Started with socR",
      "author": "Daniel Russ",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Create a coding system",
        "Changing to higher level codes",
        "Checking for invalid codes",
        "Filtering a coding system"
      ],
      "created": "2024-11-26 17:09:21",
      "modified": "2024-11-26 17:09:21",
      "commits": 1
    }
  ],
  "_score": 3.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "socr",
  "_universes": [
    "danielruss"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.0",
      "date": "2026-06-09T15:51:46.000Z",
      "distro": "noble",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "3724dda1a5fc6a28d54641b49eebf9bbe460dfd1191d336be93026920d61702a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.0",
      "date": "2026-06-09T15:51:40.000Z",
      "distro": "noble",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "11381fb2558618e14d3cfa184e395dfe15f77eb5cc8fafe5adeabae4ee4c5a5b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.0",
      "date": "2026-06-09T15:51:15.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "a47965aa1ec525f98949f8f617f0ee37532aa174f3381f889e0df5f8dd814159",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.0",
      "date": "2026-06-09T15:51:07.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "25ecf965b14e4b5f81a36c1ff630d8702bd4e5aecd2e9f9a064c7a952c1b6af4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.0",
      "date": "2026-06-09T15:51:11.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "ecc3a63afa80c150a1f13e59db34c8b646a409d1da2d51d34fbd336eb12d34e6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-06-09T15:50:15.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "09959216d8adbc18886c80a83829616c4903a774139100bc6c6c7ee7b2ef82a3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-06-09T15:50:13.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "9452a6b925c6b06c004470baeefe9ee01c9e587b770f1587a7c9f6eccba7f409",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.0",
      "date": "2026-06-09T15:50:06.000Z",
      "commit": "0c0a0a6ff15ba860543f41fe28e172cbcb96a784",
      "fileid": "09a23836b04915d0f79d84c8b967eeee3ed72d1327227d1378c7065968065019",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/danielruss/actions/runs/27217926238"
    }
  ]
}