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.

vimes_data(...)

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)

Examples

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)
#> Warning: Data contain less than 2 cases without missing data.
out
#> NULL