Description Usage Arguments Value See Also Examples
View source: R/almostAllAccessors.R
This is a simple accessor function for streamlining access to values/vectors/factors/etc contained in the sample_data.
| 1 | get_variable(physeq, varName)
 | 
| physeq | (Required).  | 
| varName | (Required). Character string of the variable name in  | 
Data. The clas of the data depends on what the contents of sample_data.
get_taxa
taxa_names
sample_names
| 1 2 3 4 | # Load the GlobalPatterns dataset into the workspace environment
data(GlobalPatterns)
# Look at the different values for SampleType 
get_variable(GlobalPatterns, "SampleType")
 | 
 [1] Soil               Soil               Soil               Feces             
 [5] Feces              Skin               Skin               Skin              
 [9] Tongue             Tongue             Freshwater         Freshwater        
[13] Freshwater (creek) Freshwater (creek) Freshwater (creek) Ocean             
[17] Ocean              Ocean              Sediment (estuary) Sediment (estuary)
[21] Sediment (estuary) Feces              Feces              Mock              
[25] Mock               Mock              
9 Levels: Feces Freshwater Freshwater (creek) Mock ... Tongue
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.