All functions

add_linked_status_col()

Add a column defining linked status

age_at_date()

Calculate the age of an invidividual on a certain date.

dat_to_arrow_formats() dat_to_parquet() dat_to_arrow() dat_to_feather()

Convert .dat.gz files into arrow formats

dat_to_datasets()

Convert dat.gz file to Apache Arrow Datasets using partitioned folder structures

delete_rtmp_dirs()

Delete all content from any temp directory

dipr_create_targets_project()

An opinionated template for package-like targets project

dipr_document_output_groups()

Convenience function to generate templates for documenting export datasets

dipr_examples() dipr_example()

Get path to dipr example files

dipr_icd_categories() dipr_icd9_categories() dipr_icd10_categories()

Assign a category to a vector of icd codes

dipr_update()

Update the dipr package from gitlab

dipr_use_export_doc()

Use the template export documentation

dipr_write_parquet()

Write a parquet file in the SRE

extract_path_name()

A function to extract the data name from a path

filter_across()

Search across columns in a data.frame or an arrow .Dataset for rows matching a given pattern.

filter_linked()

Wrapper to filter out unlinked studyids from either a data.frame or a Dataset

flag_across()

Add a logical flag (new column) based on a pattern search across columns

get_core_dat_path()

Get the dat path of a particular dataset for a given core table name

get_core_dict_path()

Get paths of data dictionaries

get_gitlab_sre_repos()

Return a data.frame of all repos available to the project you are currently in

group_ages()

Create age categories from a age vector

insert_bcgov_apache_header()

Add the boilerplate Apache header to the top of a source code file

insert_bcgov_cc_header()

Add the boilerplate Creative Commons Attribution 4.0 (CC-BY) header to the top of a source code file

install_sre_gitlab()

Install a package from the SRE gitlab.

msp_unique()

Function moved to the hawkeye package

ocwa_branch_export()

Prepare repo for import into the SRE through OCWA

read_dat() read_dat_dt()

Read compressed files in R

read_health_dict() health_dict_to_spec()

Read Health Data Dictionaries

read_nflt()

Read data dictionaries in nflt format

restore_rstudio_prefs()

Copy saved RStudio preferences from PopData Gitlab repo to you local SRE machine

set_gitlab_credentials()

Set gitlab credentials from R