Download an NHANES table from URL
nhanesFromURL(
url,
translated = TRUE,
cleanse_numeric = TRUE,
nchar = 128,
adjust_timeout = TRUE
)
data frame
URL of XPT file to be downloaded
logical, whether variable codes should be translated
Logical flag. If TRUE
, some special
codes in numeric variables, such as ‘Refused’ and
‘Don't know’ will be converted to NA
.
integer, labels are truncated after this
Typically a logical flag indicating whether
the default download.file
timeout option should be
adjusted by taking into account the size of the file to be
downloaded, as reported by the server. The value can also be a
positive numeric value, in which case it is used as a further
multiplicative factor for the default calculation.
Downloads an NHANES table from a URL and returns it as a data frame