Learn R Programming

dbstats (version 2.0.2)

as.D2: D2 objects

Description

as.D2 attempts to turn its argument into a D2 class object.

is.D2 tests if its argument is a (strict) D2 class object.

Usage

as.D2(x)

is.D2(x)

Value

An object of class D2 containing the squared distances matrix between individuals.

Arguments

x

an R object.

Author

Boj, Eva <evaboj@ub.edu>, Caballe, Adria <adria.caballe@upc.edu>, Delicado, Pedro <pedro.delicado@upc.edu> and Fortiana, Josep <fortiana@ub.edu>

See Also

D2toG, disttoD2, D2toDist and GtoD2 for conversions.