The help()
function can be used to assess documentation pages for R functions, data sets, and other objects that are part of R packages. We would like to compare the age at which the participants had sex for the first time between males and females. The help file can be used to look at the documentation about the NHANES
dataset of the NHANES
package. If we look up the name of the variable containing “Age of participant when had sex for the first time”?, we see that the name is SexAge
.