Reads all three OJV file types (postings, skills, postings_raw) from a
directory of ZIP files, deduplicates postings to one row per
general_id, and ensures referential integrity across tables.
Arguments
- path
Character scalar. Directory containing the ZIP files.
- years
Integer vector of years to include, or
NULL(default) for all available years. Passed toread_ojv_zip.- months
Integer vector of months to include, or
NULL(default) for all available months. Passed toread_ojv_zip.- verbose
Logical scalar. If
TRUE(default), prints progress messages to the console.
Value
A named list with three data.table elements, all keyed
on general_id:
- postings
Deduplicated job posting metadata (one row per
general_id).- skills
Skill-level data, filtered to
general_idvalues present inpostings.- companies
Company name data from postings_raw, filtered to
general_idvalues present inpostings.
Details
Deduplication keeps the most recent observation per general_id,
determined by year_grab_date and month_grab_date columns
(descending sort). If these columns are absent, the first occurrence is
kept.
Deprecated. Use read_oja_itaposts instead.
Reading the raw Lightcast ZIP archives is superseded by the DuckDB
store maintained by the itaposts package, which performs the same
dedup and referential-integrity steps at ingest time. The replacement
returns the same list(postings, skills, companies) shape, so
call sites only need their data-loading line changed. Retained for
backward compatibility; scheduled for removal in a future release.
See also
read_oja_itaposts for the supported replacement.