sample2D: Get a sample from matrix with probabilities.

Description Usage Arguments Value

Description

Get a sample from matrix or data frame with pair-wise probabilities.

Usage

1
sample2D(.table, .count = 1)

Arguments

.table

Numeric matrix or data frame with probabilities and columns and rows names.

.count

Number of sample to fetch.

Value

Character matrix with nrow == .count and 2 columns. row[1] in row.names(.table), row[2] in colnames(.table).


tcR documentation built on July 2, 2020, 3:18 a.m.