View source: R/amp_export_otutable.R
amp_export_otutable | R Documentation |
Export otutable (including taxonomy) from an ampvis2 object as CSV using write.table
.
amp_export_otutable(
data,
filename = "exported_otutable",
extension = "csv",
md5 = FALSE,
sep = "\t",
id = NULL,
sort_samples = NULL,
normalise = FALSE,
...
)
data |
(required) Data list as loaded with |
filename |
File name of the exported OTU-table (excluding extension). (default: |
extension |
File extension (without |
md5 |
(logical) Compute md5 sum of the data (the whole R-object, not just otutable) and append to the filename. (default: |
sep |
Separator passed directly to |
id |
Name the samples using a variable in the metadata. |
sort_samples |
Vector to sort the samples by. |
normalise |
(logical) Transform the OTU read counts to be in percent per sample. (default: |
... |
Additional arguments passed on to |
Kasper Skytte Andersen ksa@bio.aau.dk
Mads Albertsen MadsAlbertsen85@gmail.com
# Load example data
data("AalborgWWTPs")
# Export OTU-table
## Not run:
amp_export_otutable(AalborgWWTPs, md5 = TRUE, filename = "AalborgWWTPs_otutable", sep = "\\t")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.