Package: socR 0.8.0

socR: Useful functions for working with occupation coding

A set of functions that I find useful in my research into occupational coding and codes.

Authors:Daniel E. Russ [aut, cre]

socR_0.8.0.tar.gz
socR_0.8.0.zip(r-4.7)socR_0.8.0.zip(r-4.6)socR_0.8.0.zip(r-4.5)
socR_0.8.0.tgz(r-4.6-any)socR_0.8.0.tgz(r-4.5-any)
socR_0.8.0.tar.gz(r-4.7-any)socR_0.8.0.tar.gz(r-4.6-any)
socR_0.8.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
socR/json (API)

# Install 'socR' in R:
install.packages('socR', repos = c('https://danielruss.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/danielruss/socr/issues

Pkgdown/docs site:https://danielruss.github.io

Datasets:

On CRAN:

Conda:

3.60 score 2 stars 10 scripts 39 exports 56 dependencies

Last updated from:0c0a0a6ff1 (on main). Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING183
source / vignettesOK300
linux-release-x86_64WARNING175
macos-release-arm64WARNING166
macos-oldrel-arm64WARNING191
windows-develWARNING110
windows-releaseWARNING100
windows-oldrelWARNING92
wasm-releaseOK135

Exports:arrangeas_codingsystemas_tibblebin_centercodeJobHistorycodescodesAgreecodingsystemcombine_crosswalkscountcreateMultiHotEncodercrosswalkcrosswalk_columnsextend_standard_soc1980_codesfilterget_codesis_most_detailed_extended_soc1980is_most_detailed_soc1980is_urlis_validis_valid_6digit_soc2010is_valid_extended_soc1980is_valid_soc1980is.codingsystemis.xwalklevelload_socassign_dblookup_codemake_code_strmutatenameselectsplit_datastandardize_soc1980_codesto_levelto_list_columnvalid_codexwalkxwalk_entropy

Dependencies:askpassbitbit64blobcachemcellrangerclicliprcpp11crayoncurldata.tableDBIdigestdplyrfastmapforcatsforeigngenericsgluehavenhmshttrjsonlitelifecyclemagrittrmemoisemimeopensslpillarpkgconfigprettyunitsprogresspurrrR.methodsS3R.ooR.utilsR6readrreadxlrematchriorlangRSQLitestringistringrsystibbletidyrtidyselecttzdbutf8vctrsvroomwithrwritexl

Built on tidyverse

Rendered fromBuilt_on_tidyverse.Rmdusingknitr::rmarkdownon Jun 09 2026.

Last update: 2025-05-12
Started: 2025-05-09

Getting Started with socR

Rendered fromGettingStarted.Rmdusingknitr::rmarkdownon Jun 09 2026.

Last update: 2024-11-26
Started: 2024-11-26

Readme and manuals

Help Manual

Help pageTopics
Create a coding system from a data frameas_codingsystem as_codingsystem.codingsystem as_codingsystem.data.frame
Bin Score and Assign center valuebin_center
Auto-code job results with SOCcer using via the soccer APIcodeJobHistory
get the codes for a crosswalk,codes
Check if codes agree with reviewercodesAgree
constructor create a coding system S3 classcodingsystem
Combine two crosswalks to produce a new crosswalkcombine_crosswalks
creates a multihot encoder from a list of labelscreateMultiHotEncoder
Use the concordance table (crosswalk) to convert from one coding system to another.crosswalk
Crosswalk multiple columns in a tibble/data framecrosswalk_columns
Dimensions of an Objectdim.codingsystem
Extended SOC 1980 codesextend_standard_soc1980_codes
Using dplyr verbs with crosswalksarrange.xwalk as_tibble.xwalk dplyr verbs for crosswalks filter.xwalk
formats a codingsystemformat.codingsystem
Get a list of codes from a coding systemget_codes
Return the First or Last Parts of an Objecthead.codingsystem
Check if a value is a url by looking for the http(s):// .Works with vectors...is_url
Check if a set of codes are valid for a coding systemis_valid
checks if an object is a coding systemis.codingsystem
checks if an object is a crosswalkis.xwalk
Get the code Levellevel level.codingsystem
load_socassign_dbload_socassign_db
Look up codelookup_code
convert a list column of codes to vector of string for displaymake_code_str
Returns the user assigned name of the coding systemname
noc2011 4 digit classification systemnoc2011_4digit
noc2011 4 digit classification systemnoc2011_all
prints a codingsystemprint.codingsystem
Use Coding system with dplyrarrange.codingsystem as_tibble.codingsystem count.codingsystem filter.codingsystem mutate.codingsystem select.codingsystem
SOC 1980 complete classification systemsoc1980_all
Detailed SOC 1980 classification systemsoc1980_detailed
Extended SOC 1980 complete classification systemsoc1980_extended
soc2010 6 digit classification systemsoc2010_6digit
Complete SOC 2010 classification systemsoc2010_all
Complete SOC 2018 classification systemsoc2018_all
Split datasplit_data
Standardize US SOC 1980 codesstandardize_soc1980_codes
Return the First or Last Parts of an Objecttail.codingsystem
to_levelto_level
Create a list column from multiple columnsto_list_column
Is valid codeis_most_detailed_extended_soc1980 is_most_detailed_soc1980 is_valid_6digit_soc2010 is_valid_extended_soc1980 is_valid_soc1980 valid_code
xwalk class constructorxwalk
Calculates the Shannon entropy for a Crosswalkxwalk_entropy