Learn R Programming

dbstats (version 1.0.4)

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)

Arguments

x

an R object.

Value

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

See Also

D2toG, disttoD2, D2toDist and GtoD2 for conversions.