accuracy: samples two rows in a matrix and check if the samples are...

Description Usage Arguments Value Examples

View source: R/accTest.R

Description

This function

Usage

1
accuracy(mat, mono_clust, bi_clust, nrun = 10000)

Arguments

mat

matrix to be sampled from

mono_clust

monoculture cluster label

bi_clust

biculture cluster label

nrun

number of times the resampling should be carried out. Defaults to 10000

Value

a vector of integer values

Examples

1
2
3
4
5
x <- matrix(NA, nrow = 100, ncol = 3)
xx <- apply(x, 2, rnorm, 100)
xx <- cbind(xx, Mono = rep(1:2, each = 50),
            Bi = rep(1:2, times = 50))
accuracy(xx, "Mono", "Bi", nrun = 5000)

fomotis/cyanoFilter documentation built on Aug. 1, 2021, 10:58 p.m.