attach_Drug: Attach medication usage

Description Usage Arguments Value

View source: R/attach_Drug.R

Description

Attach medication usage

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
attach_Drug(
  ...,
  data,
  years,
  drugname = "drug",
  dcn = TRUE,
  icn = TRUE,
  cat = TRUE,
  goal01
)

Arguments

...

passed to lookl()

data

data

years

years

drugname

name for new drug colmun name

dcn

logical. whether to show drug category name

icn

logical. whether to show ingredient category name

cat

logical

goal01

transform your goal drug to number, 1 is goal, 0 is others

Value

drug


yikeshu0611/nhanesR documentation built on Jan. 29, 2022, 6:08 a.m.