sample_variables: Get the sample variables present in sample_data

Description Usage Arguments Value See Also Examples

View source: R/almostAllAccessors.R

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

1
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

get_taxa taxa_names sample_names

Examples

1
2

Example output

[1] "Enterotype"     "Sample_ID"      "SeqTech"        "SampleID"      
[5] "Project"        "Nationality"    "Gender"         "Age"           
[9] "ClinicalStatus"
Warning message:
system call failed: Cannot allocate memory 

phyloseq documentation built on Nov. 8, 2020, 6:41 p.m.