|
a |
|
b/man/cal_sim.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/1.calculate.R |
|
|
3 |
\name{cal_sim} |
|
|
4 |
\alias{cal_sim} |
|
|
5 |
\title{Calculate similarity for one t(otutab)} |
|
|
6 |
\usage{ |
|
|
7 |
cal_sim(totu, totu2 = NULL, method = "bray") |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{totu}{t(otutab), row are samples, column are features.} |
|
|
11 |
|
|
|
12 |
\item{totu2}{t(otutab) or NULL, row are samples, column are features.} |
|
|
13 |
|
|
|
14 |
\item{method}{Dissimilarity index, see \code{\link[vegan]{vegdist}}.} |
|
|
15 |
} |
|
|
16 |
\value{ |
|
|
17 |
similarity = 1-distance |
|
|
18 |
} |
|
|
19 |
\description{ |
|
|
20 |
Calculate similarity for one t(otutab) |
|
|
21 |
} |
|
|
22 |
\examples{ |
|
|
23 |
if (requireNamespace("vegan")) { |
|
|
24 |
data("otutab", package = "pcutils") |
|
|
25 |
t(otutab) -> totu |
|
|
26 |
cal_sim(totu) -> sim_corr |
|
|
27 |
} |
|
|
28 |
} |
|
|
29 |
\seealso{ |
|
|
30 |
\code{\link[vegan]{vegdist}} |
|
|
31 |
|
|
|
32 |
Other calculate: |
|
|
33 |
\code{\link{c_net_calculate}()}, |
|
|
34 |
\code{\link{fast_cor}()}, |
|
|
35 |
\code{\link{p.adjust.table}()}, |
|
|
36 |
\code{\link{read_corr}()} |
|
|
37 |
} |
|
|
38 |
\concept{calculate} |