col_ttest: Title

col_ttestR Documentation

Title

Description

Title

Usage

col_ttest(data, g1, g2, adjust = TRUE, p = TRUE, method = "t.test")

Arguments

data

the data.frame colume has the two group need to test by t.test

g1

the number range for group1 like "'1:3'"

g2

the number range for group2 like "'4:6'"

adjust

TRUE/FALSE add/ or not add the qvalue by qvalue packsages.

p

TRUE/FALSE add/ or not add the pvalue by ttest.

method

the test method like t.test or wlicox.test

Value

the qvalue and pvalue

Examples

test = matrix(rnorm(200), 20, 10)
test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
colnames(test) = paste("Test", 1:10, sep = "")
rownames(test) = paste("Gene", 1:20, sep = "")
col_ttest(data = test,g1 = 1:5,g2 = 6:10)

wangjiaxuan666/xbox documentation built on Sept. 4, 2024, 5:03 p.m.