bio_field: Reads project-specific UKB field codes

View source: R/phenotype.R

bio_fieldR Documentation

Reads project-specific UKB field codes

Description

The field code lookup table associates with each field id, a desciptive name (which includes the field id, array, index), ukb_type, r_type, basket and the path to the csv file containing the field data.

Usage

bio_field(project_dir, pheno_dir = "phenotypes")

Arguments

project_dir

Path to the enclosing directory of a UKB project

pheno_dir

Path to the enclosing directory of the phenotype data.

Value

A dataframe with columns: ukb_type, r_type, path


kenhanscombe/ukbkings documentation built on April 28, 2023, 12:47 p.m.