nhs_read: Read data from 'NHANES' database in local PC

Description Usage Arguments Value

View source: R/nhs_read.R

Description

Read data from 'NHANES' database in local PC

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
nhs_read(
  ...,
  varLabel = FALSE,
  codebook = TRUE,
  lower_cd = FALSE,
  Year = TRUE,
  nrows = Inf,
  cat = TRUE,
  join = c("full", "inner", "left", "right", "semi", "anti", "nest")
)

Arguments

...

one or more data file path, or variable names

varLabel

logical, whether to add varLabel for variable

codebook

logical, whether to decode variable

lower_cd

logical. whether to ignore case in codebook

Year

logical. whether to keep Year column

nrows

The maximum number of rows to read.

cat

logical. whether to show progress information

join

join method. One of full, inner, left, right, semi, anti, nest

Value

a list contains dataframe or one dataframe


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