read_slf_individual: Read a Source Linkage individual file

View source: R/read_slf.R

read_slf_individualR Documentation

Read a Source Linkage individual file

Description

Read a Source Linkage individual file

Usage

read_slf_individual(
  year,
  col_select = NULL,
  partnerships = NULL,
  as_data_frame = TRUE,
  dev = FALSE,
  columns = lifecycle::deprecated()
)

Arguments

year

Year of the file to be read, you can specify multiple years which will then be returned as one file. It will be converted to short FY using format_year().

col_select

A character vector of column names to keep, as in the "select" argument to data.table::fread(), or a tidy selection specification of columns, as used in dplyr::select().

partnerships

Optional specify a partnership (hscp2018) or partnerships to select.

as_data_frame

Should the function return a tibble (default) or an Arrow Table?

dev

[Experimental] Whether to get the file from the development area (⁠/conf/sourcedev/Source_Linkage_File_Updates⁠). The default (FALSE) will get the production file from the usual area.

columns

[Deprecated] columns is no longer used, use col_select instead.

Value

The requested SLF data as a tibble or an Arrow Table.

Examples

## Not run: 
read_slf_individual("1718",
  col_select = c("anon_chi", "dob", "hri_scot")
)
read_slf_individual(c("1718", "1819"),
  col_select = c("anon_chi", "dob", "hri_scot"),
  as_data_frame = FALSE
)

## End(Not run)

Moohan/slfhelper documentation built on March 20, 2024, 1:09 a.m.