R Functions (A)

The section introduces a set of R functions useful for accessing and processing complex survey data, providing their descriptions and the packages they belong to.

Function_name Package_name Description
apply base Applies a function over an array or matrix.
cut base Converts a numeric variable to a factor variable.
merge base/data.table Merges multiple datasets.
names base Retrieves the names of an object.
nhanes nhanesA Downloads a NHANES datafile.
nhanesTables nhanesA Lists available variables within a datafile.
nhanesTranslate nhanesA Encodes categorical variables to match with certain standards, e.g., CDC website.
recode car Recodes a variable.

For more information, visit the resources mentioned earlier.