loadData {MetaNetwork}R Documentation

Load data from csv files

Description

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.

Usage

  mydata <- loadData(filename)

Arguments

filename path of the file where the data will be loaded from.

Value

Returns a matrix containing the data from the indicated file.

Author(s)

Jingyuan Fu <j.fu@rug.nl>, Morris Swertz <m.a.swertz@rug.nl>, Ritsert Jansen <r.c.jansen@rug.nl>

References

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

See Also

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.

Examples

  #not run
  ##load genotypes
  genotypes <- loadData("genotypes.csv") 
  
  ##load traits  
  traits    <- loadData("traits.csv")
  
  ##load markers   
  markers   <- loadData("markers.csv")
  
  ## end not run
     

[Package MetaNetwork version 1.0-0 Index]