View source: R/annotateFactors.R
annotateFactors | R Documentation |
Format sample data files as needed for sociodemographic and smoking analyses.
annotateFactors(NYC_HANES)
annotateFullDataset(dat)
formatMetadata(dat)
NYC_HANES |
An object of class |
dat |
Data.frame. |
These are convenience functions that accomplish all recoding and formatting of sample data for consistency across sociodemographics and smoking analyses.
annotateFactors
formats the phyloseq
object of the n=297 pilot study, and annotateFullDataset
formats the full NYC HANES data.frame. formatMetadata
produces a dataset where factor levels represent very nice-looking labels for sociodemographics variables used in plotting and tables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.