XPtrToDist {rrp}R Documentation

Coercion from an XPtr object into a dist one

Description

Coercies an XPtr object into a dist object which can be used in other algorithms.

Usage

XPtrToDist(d)

Arguments

d an XPtr object

Details

This routine does not duplicate but just makes available as a dist the data contained in d

Value

returns an invisible object of class dist

Author(s)

S.M. Iacus

References

Iacus, S.M., Porro, G. (2006) Random Recursive Partitioning and its applications to missing data imputation, classification and average treatment effect estimation, submitted.

See Also

newXPtr

Examples

a <- newXPtr(10,5)
(XPtrToDist(a))
as.dist(matrix(5,10,10))

[Package rrp version 2.3 Index]