Skip to content
Prev 6288 / 63424 Next

MASS: isoMDS and sammon

Peter Kleiweg <kleiweg@let.rug.nl> writes:
Actually, it should work if you simply define the arguments as 

isoMDS <- function(d, y=cmdscale(d, k), k=2, maxit=50, trace=TRUE)

Default arguments can refer to each other and even to items calculated
inside the function.