MPdistImpute: Impute values for NAs in a dist object

Description Usage Arguments

Description

(This is a specialized function - it converts x into a dist. This is to enforce consistency when applying the 'method' function. e.g. to avoid confusion between mean(matrix) and mean(as.dist(matrix)), which are not the same)

Usage

1
MPdistImpute(x, method = mean)

Arguments

x

matrix or dist object

method

function, is applied on x to find the imputed values. This function must be able to perform method(x, na.rm=TRUE)


tkonopka/MultiPattern documentation built on May 31, 2019, 3:45 p.m.