factor_glucose_fasting: Fasting Glucose Classification

View source: R/factor_glucose_fasting.R

factor_glucose_fastingR Documentation

Fasting Glucose Classification

Description

* 'factor_glucose_fasting()' classifies fasting glucose as Normal (NFG), Impaired (IFG), or Diabetes (DM2)

Usage

factor_glucose_fasting(x)

Arguments

x

A glucose value, or vector of values, in mg/dL. Converts a number entered as a string to numeric if possible, otherwise returns 'NA'

Value

A Factor for OGTT classification of fasting and 2hr glucose

Examples

factor_glucose_fasting(155)
factor_glucose_fasting(c(120, 130, 150, 200))
factor_glucose_fasting(c(120, 130, NA, 200))

JMLuther/tabletools documentation built on July 1, 2024, 2:01 p.m.