cmdscale: Wrapper to 'cmdscale' for S3 class

Description Usage Arguments Value Examples

View source: R/extras.R

Description

Wrapper to cmdscale for S3 class

Usage

1
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

Value

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

Examples

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

cops documentation built on March 24, 2021, 1:06 a.m.