Description Usage Arguments Author(s) Examples
View source: R/Classes_Libraries.R
write a MIxS.metadata class object to a CSV file
1 | write.MIxS(x, file="")
|
x |
the MIxS.metadata class object to be written. |
file |
either a character string naming a file or a connection open for writing. "" indicates output to the console. |
Maxime Sweetlove CC-0 2020
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
sampleNames <- c("sample_1", "sample_2")
test_MIxS <- new("MIxS.metadata",
data = data.frame(var1=c(1,2), var2=c(3,4), eventID=sampleNames,
row.names=sampleNames),
section = c(var1="section1", var2="section1", eventID="miscellaneous"),
units = c(var1="unit1", var2="unit2", eventID="alphanumeric"),
env_package = "water",
type = "versatile",
QC = TRUE)
write.MIxS(x=test_MIxS, file="test.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.