Description Usage Arguments Details Value Author(s) Examples
Creat a vector with hith/low versus the threshold, suitable for
analysis with [metafor]{rma}
.
1 | high_low_vector(var_of_interest, dataset, threshold)
|
var_of_interest |
character, the interesting variable names. |
dataset |
dataframe. a dataframe contain the inteeresting variable. |
threshold |
numeric, the threshold. |
TODO
a vector with high/low versus the threshold.
Shuangbin Xu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.