cmdscale {cops}R Documentation

Wrapper to cmdscale for S3 class

Description

Wrapper to cmdscale for S3 class

Usage

cmdscale(d, k = 2, eig = TRUE, ...)

Arguments

d

a distance structure such as that returned by 'dist' or a full symmetric matrix containing the dissimilarities

k

the maximum dimension of the space which the data are to be represented in

eig

indicates whether eigenvalues should be returned.

...

additional parameters passed to cmdscale. See cmdscale

Details

overloads base::cmdscale and adds class attributes for which there are methods. The functionality is duplicated in the stops package.

Value

Object of class "cmdscaleE' and 'cmdscale' extending cmdscale. This wrapper only adds an extra slot to the list with the call, adds column labels to the $points and assigns S3 class 'cmdscaleE' and 'cmdscale'.

Examples

dis<-as.matrix(smacof::kinshipdelta)
res<-cmdscale(dis)

[Package cops version 1.3-1 Index]