Last data update: 2014.03.03

R: Nuclear Magnetic Resonance Spectra of Urines
MetRefR Documentation

Nuclear Magnetic Resonance Spectra of Urines

Description

Nuclear magnetic resonance spectra of urines. The data belong to a cohort of 22 healthy donors (11 male and 11 female) where each provided about 40 urine samples over the time course of approximately 2 months, for a total of 873 samples.

Usage

data(MetRef)

Value

A list with the following elements:

data

Gene expression data. A matrix with 873 rows and 450 columns.

gender

Gender index. A vector with 873 elements.

donor

Donor index. A vector with 873 elements.

References

Assfalg M, Bertini I, Colangiuli D, et al.
Evidence of different metabolic phenotypes in humans.
Proc Natl Acad Sci U S A 2008;105(5):1420-4.

Examples

data(MetRef)
u=MetRef$data;
u=u[,-which(colSums(u)==0)]
u=scaling(u)$newXtrain
class=as.numeric(as.factor(MetRef$gender))
cc= cmdscale(dist(u))
plot(cc,pch=21,bg=class,xlab="First Component",ylab="Second Component");

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(KODAMA)
Loading required package: e1071
Loading required package: plsgenomics
Loading required package: MASS
Loading required package: boot
Loading required package: parallel
Loading required package: class

Attaching package: 'KODAMA'

The following object is masked from 'package:plsgenomics':

    transformy

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/KODAMA/MetRef.Rd_%03d_medium.png", width=480, height=480)
> ### Name: MetRef
> ### Title: Nuclear Magnetic Resonance Spectra of Urines
> ### Aliases: MetRef
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(MetRef)
> u=MetRef$data;
> u=u[,-which(colSums(u)==0)]
> u=scaling(u)$newXtrain
> class=as.numeric(as.factor(MetRef$gender))
> cc= cmdscale(dist(u))
> plot(cc,pch=21,bg=class,xlab="First Component",ylab="Second Component");
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>