Learn R Programming

RAM (version 1.2.1.3)

RAM.input.formatting: Data Input Formatting

Description

When use some RAM functions for the comparison of multiple OTU tables or taxonomic abundance matrices, the user needs to privde all input data sets as list with names being provided.
one data set:
data=list(data=otu)

multiple data sets:
data=list(data1=otu1, data2=otu2, data3=otu3)

an OTU table:
a data frame of otuIDs x sampleIDs with the last column named "taxonomy"

a taxonomy abundance matrix:
a data frame of sampleIDs x taxa (e.g. species)

is.OTU:
logical, many functions in RAM require the user to set is.OTU to be TRUE for OTU tables or FALSE for a taxonomy abundance matrices.

Arguments

Examples

Run this code
data(ITS1, ITS2, meta)
# use otu tables
matched <- match.data(data=list(otu_ITS1=ITS1, otu_ITS2=ITS2),
           is.OTU=TRUE, meta=meta)
# taxonomy abundance matrices
g1 <- tax.abund(ITS1, rank="g")
g2 <- tax.abund(ITS2, rank="g")
matched <- match.data(data=list(genus_ITS1=g1, genus_ITS2=g2),
           is.OTU=FALSE, meta=meta)

Run the code above in your browser using DataLab