normalize_phecodes: Normalize a phecode vector to padded character

Description Usage Arguments Value Examples

View source: R/helpers_normalize_phecodes.R

Description

Across ME we work with the phecodes that are provided in a million different formats. This takes any format (float, string) and converts it to a 0-padded character.

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))

tbilab/meToolkit documentation built on June 23, 2020, 9:55 a.m.