nhanesSearchVarName: Search for tables that contain a specified variable.

Description Usage Arguments Details Examples

View source: R/nhanes.R

Description

Returns a list of table names that contain the variable

Usage

1
2
nhanesSearchVarName(varname = NULL, ystart = NULL, ystop = NULL,
  includerdc = FALSE, nchar = 100, namesonly = TRUE)

Arguments

varname

Name of variable to match.

ystart

Four digit year of first survey included in search, where ystart >= 1999.

ystop

Four digit year of final survey included in search, where ystop >= ystart.

includerdc

If TRUE then RDC only tables are included in list (default=FALSE).

nchar

Truncates the variable description to a max length of nchar.

namesonly

If TRUE then only the table names are returned (default=TRUE).

Details

The NHANES Comprehensive Variable List is scanned to find all data tables that contain the given variable name. Only a single variable name may be entered, and only exact matches will be found.

Examples

1
2
nhanesSearchVarName('BMXLEG')
nhanesSearchVarName('BMXHEAD', ystart=2003)

nhanesA documentation built on May 20, 2017, 4:58 a.m.

Search within the nhanesA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.