| loadData {MetaNetwork} | R Documentation |
Load a comma separated values (csv) file and convert the contents of the file
into a matrix object, taking the 1st column as the rownames and the 1st
row as columnnames. See also read.csv.
mydata <- loadData(filename)
filename |
path of the file where the data will be loaded from. |
Returns a matrix containing the data from the indicated file.
Jingyuan Fu <j.fu@rug.nl>, Morris Swertz <m.a.swertz@rug.nl>, Ritsert Jansen <r.c.jansen@rug.nl>
Fu J, Swertz MA, Keurentjes JJB, Jansen RC. MetaNetwork: a computational tool for the genetic study of metabolism. Nature Protocols (2007).
http://gbic.biol.rug.nl/supplementary/2007/MetaNetwork
Use genotypes, traits and markers
as example data sets.
Use MetaNetwork for automated analysis of loaded data sets as
part of a genetic analysis protocol on metabolites.
#not run
##load genotypes
genotypes <- loadData("genotypes.csv")
##load traits
traits <- loadData("traits.csv")
##load markers
markers <- loadData("markers.csv")
## end not run