getthresholds: Creat the thresholds vector.

Description Usage Arguments Details Value Author(s) Examples

Description

Creat the thresholds for the high_low_vector

Usage

1
getthresholds(dataset, var_of_interest, type = "median")

Arguments

dataset

dataframe, a dataframe contain interesting variable.

var_of_interest

character, a vector interesting variables

type

character, the method of choose thresholds, (median or mean), default is median

Details

TODO

Value

a vector thresholds of interesting variable.

Author(s)

Shuangbin Xu

Examples

1
2
3
4
5
6
7
8
library("MetaMicrobiome")
data <- read.csv(system.file("data", 
         package="MetaMicrobiome", 
      "Baxter_16_alpha_data.csv.gz")) 
thresVetor <- getthresholds(dataset=data, 
              var_of_interest=c("Shannon", 
                                "Observe"), 
              type="median")

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