vimes_data: Process input data for vimes

Description Usage Arguments Value Author(s) Examples

Description

This function takes a series of 'dist' objects (or objects which can be converted to 'dist', and ensures that entries match in all objects, adding NAs where necessary. The total number of cases and labels are returned as attributes.

Usage

1

Arguments

...

a series (alternatively, a list) of matrices or dist objects serving as input.

Value

a list of dist objects with matching entries, with attributes: 'labels' (labels of the cases) and 'N' (number of cases)

Author(s)

Thibaut Jombart thibautjombart@gmail.com

Examples

1
2
3
4
5
6
7
8
x1 <- c(0,1,3)
x2 <- c(2,5)
names(x1) <- letters[1:3]
names(x2) <- c('a', 'r')
D1 <- dist(x1)
D2 <- dist(x2)
out <- vimes_data(D1, D2)
out

thibautjombart/vimes documentation built on May 31, 2019, 10:38 a.m.