Wednesday, April 21, 2010

for , while, bacis commonds

http://manuals.bioinformatics.ucr.edu/home/programming-in-r#Progr_for

Wednesday, January 27, 2010

Merge two data.frame by keywords

Total<- merge(d3,docd3,by = "Gene")


refer to : http://www.statmethods.net/management/merging.html

learn R from youtube

http://www.youtube.com/watch?v=W2GZFeYGU3s&feature=related

order by data.frame

with(d3,d3[order(d3$Ecombo),])
with(d3,d3[order(-d3$Ecombo),])

statistics

> wilcox.test(d3$Ecombo,d3$Edoc,paired=TRUE, conf.level = 0.95)

Wilcoxon signed rank test with continuity correction

data: d3$Ecombo and d3$Edoc
V = 25425, p-value < 2.2e-16
alternative hypothesis: true location shift is not equal to 0

> help("t.test")
> p-value
Error: object 'p' not found
> p-value
Error: object 'p' not found
> x = wilcox.test(d3$Ecombo,d3$Edoc,paired=TRUE, conf.level = 0.95)
> x

Wilcoxon signed rank test with continuity correction

data: d3$Ecombo and d3$Edoc
V = 25425, p-value < 2.2e-16
alternative hypothesis: true location shift is not equal to 0

> x[1]
$statistic
V
25425

> x[2]
$parameter
NULL

> x[3]
$p.value
[1] 1.157085e-38

> x[0]
list()
> x$p.value
[1] 1.157085e-38
>

R wiki

http://wiki.r-project.org/rwiki/doku.php?id=tips:data-frames:sort