Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sample_variables

Get the sample variables present in sample_data


Description

This is a simple accessor function to make it more convenient to determine the sample variable names of a particular phyloseq-class object.

Usage

sample_variables(physeq, errorIfNULL=TRUE)

Arguments

physeq

(Required). sample_data-class, or phyloseq-class.

errorIfNULL

(Optional). Logical. Should the accessor stop with an error if the slot is empty (NULL)? Default TRUE.

Value

Character vector. The names of the variables in the sample_data data.frame. Essentially the column names. Useful for selecting model and graphics parameters that interact with sample_data.

See Also

Examples

data(enterotype)
sample_variables(enterotype)

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.