extract_alspac_labels: extract_alspac_labels

View source: R/alspac-addition.R

extract_alspac_labelsR Documentation

extract_alspac_labels

Description

Extract Stata labels from ALSPAC .dta files. These are needed to interpret numeric values assigned to categorical variables.

Usage

extract_alspac_labels(dat, alsp_dir)

Arguments

dat

data.frame with columns "path", "obj", name", that correspond to the path within the ALSPAC directory to find the files, the file names of interest and the variables of interest.

alsp_dir

string. Path to ALSPAC directory on local machine.

Value

list of variable names and their labels


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.