MultiHighLow: creat list of vectors with high/low versus the threshold.

Description Usage Arguments Details Value Author(s) Examples

Description

Creat list of vetors with high/low versus the threshold, suitable for analysis with [metafor]{rma}

Usage

1
MultiHighLow(var_of_interest, dataset, threshold)

Arguments

var_of_interest

vector, the vector of interesting variables.

dataset

dataframe, the dataframe contained the interesting variables.

threshold

vector, the threshold values vector.

Details

TODO

Value

list of vector with high/low versus the threshold.

Author(s)

Shuangbin Xu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library("MetaMicrobiome")
testfile <- system.file("data", package="MetaMicrobiome", "Baxter_16_alpha_data.csv.gz")
data <- read.csv(testfile, header=TRUE, check.names=FALSE)
thresVetor <- getthresholds(dataset=data, 
			c("Shannon", "Observe", "J"), 
			type="median")
multiVariableHL <- MultiHighLow(var_of_interest=c("Shannon", 
						     "Observe",
						     "J"),
				dataset=data, 
				threshold=thresVetor)
head(multiVariableHL)

xiangpin/MetaMicrobiome documentation built on May 26, 2019, 2:34 a.m.