normalize_phecodes: Normalize a phecode vector to padded character

Description Usage Arguments Value Examples

View source: R/normalize_phecodes.R

Description

Depending on if a phecode was ever converted to a number or not it can show up in a million different formats. This standardizes everything to a 6 digits number.

Usage

1

Arguments

codes

A vector of phecodes in whatever format your heart desires. E.g. 8.00, 8, 0008.0, ...

Value

A vector of 0-padded phecodes.

Examples

1
normalize_phecodes(c(8, 8.1, 9.2, 23.4))

nstrayer/phewasHelper documentation built on April 2, 2020, 5:06 a.m.