vimes_data: Process input data for vimes

Description Usage Arguments Value Author(s) Examples

View source: R/vimes_data.R

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

reconhub/vimes documentation built on May 27, 2019, 4:03 a.m.