high_low_vector: creat a vector with high/low versus the threshold.

Description Usage Arguments Details Value Author(s) Examples

Description

Creat a vector with hith/low versus the threshold, suitable for analysis with [metafor]{rma}.

Usage

1
high_low_vector(var_of_interest, dataset, threshold)

Arguments

var_of_interest

character, the interesting variable names.

dataset

dataframe. a dataframe contain the inteeresting variable.

threshold

numeric, the threshold.

Details

TODO

Value

a vector with high/low versus the threshold.

Author(s)

Shuangbin Xu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")
highlowVector <- high_low_vector(dataset=data, 
	threshold=thresVetor, 
	var_of_interest="Shannon")
head(highlowVector)

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