write.MIxS: Data Output: write a MIxS.metadata class object to a CSV file

Description Usage Arguments Author(s) Examples

View source: R/Classes_Libraries.R

Description

write a MIxS.metadata class object to a CSV file

Usage

1

Arguments

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.

Author(s)

Maxime Sweetlove CC-0 2020

Examples

 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)

biodiversity-aq/OmicsMetaData documentation built on Dec. 19, 2021, 9:44 a.m.