seriation: Seriation

Description Usage Arguments Value Examples

Description

Seriation function wrappers that give the result in a long tidy data.frame. The result table can be transformed to a wide format with spread_seriation.

Usage

1
2
3
4
5

Arguments

...

Input arguments of seriation::seriate.

raw_output

Logical. Should the raw output of the wrapped functions be stored as an additional output attribute "raw"? Default: TRUE.

x

Data.frame. Output of the seriation wrapper functions.

Value

A tibble with the seriation result in a long format. Additional values are stored in object attributes. See attributes(result)$raw.

row: Character. Names of rows.

row_order: Integer. Order of rows.

col: Character. Names of columns.

col_order: Integer. Order of columns.

value: Numeric. Value in input matrix for respective row and col.

Examples

1
2
3
4
5
6
7
8
seriation.seriation_seriate(matuskovo_material, method = "PCA")

library(tabula)
matuskovo_CountMatrix <- as(matuskovo_material, "CountMatrix")
seriation.tabula_seriate(matuskovo_CountMatrix, method = "correspondance")

# transform back to wide format
spread_seriation(seriation.seriation_seriate(matuskovo_material, method = "PCA"))

MartinHinz/quantaar documentation built on May 7, 2019, 3:37 p.m.